From 33a481e9d39ea0119aaabb19234d4c368c7e7ed3 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:25:55 -0400 Subject: [PATCH 1/2] allow setting `$SCRIPTDIR` --- APP-MANAGER | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/APP-MANAGER b/APP-MANAGER index f5bc1de07..264ef35b8 100755 --- a/APP-MANAGER +++ b/APP-MANAGER @@ -27,7 +27,8 @@ export CONFIGDIR="${XDG_CONFIG_HOME:-$HOME/.config}" export CACHEDIR="${XDG_CACHE_HOME:-$HOME/.cache}" export APPMANCONFIG="$CONFIGDIR/appman" APPMANCONFIG="$CONFIGDIR/appman" -SCRIPTDIR="$(xdg-user-dir DESKTOP 2>/dev/null || echo "$HOME")" +SCRIPTDIR="${SCRIPTDIR:-$(xdg-user-dir DESKTOP 2>/dev/null)}" +[ -d "$SCRIPTDIR" ] || SCRIPTDIR="$HOME" export SCRIPTDIR # Colors From d7d412bb2036e0980d525c07f553b7c4fc3f64d4 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:31:44 -0400 Subject: [PATCH 2/2] use `$PWD` instead of `$HOME` --- APP-MANAGER | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APP-MANAGER b/APP-MANAGER index 264ef35b8..4277e0728 100755 --- a/APP-MANAGER +++ b/APP-MANAGER @@ -28,7 +28,7 @@ export CACHEDIR="${XDG_CACHE_HOME:-$HOME/.cache}" export APPMANCONFIG="$CONFIGDIR/appman" APPMANCONFIG="$CONFIGDIR/appman" SCRIPTDIR="${SCRIPTDIR:-$(xdg-user-dir DESKTOP 2>/dev/null)}" -[ -d "$SCRIPTDIR" ] || SCRIPTDIR="$HOME" +[ -d "$SCRIPTDIR" ] || SCRIPTDIR="$PWD" export SCRIPTDIR # Colors