diff --git a/doc/60_DefaultConfig.txt b/doc/60_DefaultConfig.txt index d08c8f8..c3f4372 100644 --- a/doc/60_DefaultConfig.txt +++ b/doc/60_DefaultConfig.txt @@ -35,7 +35,7 @@ trouble in case of an update. # @Xdisplay@ will replaced by number of tty # verboseLevel="3" # 0=quiet, 1=silent, 2=info, 3=verbose # theme="" # Ok, it is theme related -# sessionPfads="/usr/share/xsessions /usr/share/wayland-sessions" +# sessionPfads="/usr/share/xsessions:/usr/share/wayland-sessions" # Yeah, looks like a typo, but use it as written :-) # Available text (foreground) colors and attributes, protected not to change. diff --git a/src/tbsm b/src/tbsm index 40d4796..6057711 100755 --- a/src/tbsm +++ b/src/tbsm @@ -54,7 +54,7 @@ declare -r sessionStartDirs=( "${sessionStartDirs[@]}" ) declare -r configDir="${XDG_CONFIG_HOME:-${HOME}/.config}/${myName}" declare -r installPfad="" -declare sessionPfads="/usr/share/xsessions /usr/share/wayland-sessions" +declare sessionPfads="/usr/share/xsessions:/usr/share/wayland-sessions" declare runInTTY="yes" # When unset we have no tty, glas is half full declare XserverArg="@Xdisplay@ -nolisten tcp" # @Xdisplay@ will replaced by number of tty declare protectedVerbose @@ -900,9 +900,8 @@ if [[ -n "${theme}" ]]; then readConfigFile "themes/${theme}" fi -# Urgs! Since afdb675 sessionPfads is no longer an array. -# But to satisfy shellcheck elsewhere is that mandatory. -read -ra sessionPfads <<< "$sessionPfads" +# Convert our path string into an array for nicer handling later +IFS=':' read -ra sessionPfads <<< "$sessionPfads" # FIXME: Do you know a way to "re-eval" strings with variables in it so we can # simple 'declare' all these on top of file but have effect if a config