]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add default lib path
authorBastian Dehn <hhaalo@arcor.de>
Fri, 25 Sep 2026 08:22:07 +0000 (10:22 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 25 Sep 2026 08:22:07 +0000 (10:22 +0200)
src/albentohandy

index fcc8ca76b975badc89509b0d30abb0da7e4265c7..3af22533e6ba4ab6fbd18042e7ef7175847bc040 100755 (executable)
@@ -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()