From 85932824ca68c9ae37fff91d8b33c760a7247cbe Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:01:46 -0400 Subject: [PATCH] Reference relative install paths to support NixOS --- lug-helper.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index df33b0b..75b3157 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -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