mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 15:44:20 +00:00
Reference relative install paths to support NixOS
This commit is contained in:
parent
2214d6a9e7
commit
85932824ca
@ -152,8 +152,8 @@ shaders_subdir="shaders"
|
||||
|
||||
# Use logo installed by a packaged version of this script if available
|
||||
# Otherwise, default to the logo in the same directory
|
||||
if [ -f "/usr/share/pixmaps/lug-logo.png" ]; then
|
||||
lug_logo="/usr/share/pixmaps/lug-logo.png"
|
||||
if [ -f "$(dirname "$helper_dir")/share/pixmaps/lug-logo.png" ]; then
|
||||
lug_logo="$(dirname "$helper_dir")/share/pixmaps/lug-logo.png"
|
||||
elif [ -f "$helper_dir/lug-logo.png" ]; then
|
||||
lug_logo="$helper_dir/lug-logo.png"
|
||||
else
|
||||
@ -162,8 +162,8 @@ fi
|
||||
|
||||
# Use Lutris install script installed by a packaged version of this script if available
|
||||
# Otherwise, default to the json in the same directory
|
||||
if [ -f "/usr/share/lug-helper/lutris-sc-install.json" ]; then
|
||||
install_script="/usr/share/lug-helper/lutris-sc-install.json"
|
||||
if [ -f "$(dirname "$helper_dir")/share/lug-helper/lutris-sc-install.json" ]; then
|
||||
install_script="$(dirname "$helper_dir")/share/lug-helper/lutris-sc-install.json"
|
||||
else
|
||||
install_script="$helper_dir/lutris-sc-install.json"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user