diff --git a/APP-MANAGER b/APP-MANAGER index f5bc1de07..4277e0728 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="$PWD" export SCRIPTDIR # Colors