From c8c9ee5e2394ba7003259a3d021d99c70326ed5c Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 25 Sep 2026 10:22:07 +0200 Subject: [PATCH] add default lib path --- src/albentohandy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/albentohandy b/src/albentohandy index fcc8ca7..3af2253 100755 --- a/src/albentohandy +++ b/src/albentohandy @@ -18,6 +18,9 @@ check_programs() load_config() { + local scriptpath= + scriptpath=$(dirname "$(realpath "$0")") + CONFIG_FILE=${CONFIG_FILE:-"$HOME/.albentohandy.conf"} [ -f "$CONFIG_FILE" ] \ @@ -28,6 +31,7 @@ load_config() [ -n "$MUSIC_PATHES" ] \ || errlog "missing MUSIC_PATHES in $CONFIG_FILE" \ || return $? + LIB_PATH=${LIB_PATH:-"$scriptpath/lib"} } main() -- 2.47.3