Reference relative install paths to support NixOS

This commit is contained in:
the-sane 2023-08-01 13:01:46 -04:00
parent 2214d6a9e7
commit 85932824ca

View File

@ -152,8 +152,8 @@ shaders_subdir="shaders"
# Use logo installed by a packaged version of this script if available # Use logo installed by a packaged version of this script if available
# Otherwise, default to the logo in the same directory # Otherwise, default to the logo in the same directory
if [ -f "/usr/share/pixmaps/lug-logo.png" ]; then if [ -f "$(dirname "$helper_dir")/share/pixmaps/lug-logo.png" ]; then
lug_logo="/usr/share/pixmaps/lug-logo.png" lug_logo="$(dirname "$helper_dir")/share/pixmaps/lug-logo.png"
elif [ -f "$helper_dir/lug-logo.png" ]; then elif [ -f "$helper_dir/lug-logo.png" ]; then
lug_logo="$helper_dir/lug-logo.png" lug_logo="$helper_dir/lug-logo.png"
else else
@ -162,8 +162,8 @@ fi
# Use Lutris install script installed by a packaged version of this script if available # Use Lutris install script installed by a packaged version of this script if available
# Otherwise, default to the json in the same directory # Otherwise, default to the json in the same directory
if [ -f "/usr/share/lug-helper/lutris-sc-install.json" ]; then if [ -f "$(dirname "$helper_dir")/share/lug-helper/lutris-sc-install.json" ]; then
install_script="/usr/share/lug-helper/lutris-sc-install.json" install_script="$(dirname "$helper_dir")/share/lug-helper/lutris-sc-install.json"
else else
install_script="$helper_dir/lutris-sc-install.json" install_script="$helper_dir/lutris-sc-install.json"
fi fi