Offer all available sessions if wmbinlist is empty

pull/7/head
Jonas Bernoulli 13 years ago
parent 791a5e5bdf
commit f412507465

@ -58,6 +58,14 @@ else
exit 1
fi
# Offer all available sessions in /etc/X11/Sessions
# if wmbinlist if not explicitly set in cdmrc
if [[ "${#wmbinlist[@]}" -eq 0 ]]; then
wmbinlist=($(ls /etc/X11/Sessions))
wmdisplist=($(echo ${wmbinlist[@]^}))
fi
unset DIALOGRC
# Source theme file
if [[ ! -z ${theme} ]]; then

@ -7,10 +7,12 @@ theme=cdm
countfrom=1
# List all WM binary names
wmbinlist=(awesome openbox-session)
# If this is not set all sessions in
# /etc/X11/Sessions are offered as choices.
wmbinlist=()
# List all WM display names
wmdisplist=(Awesome Openbox)
wmdisplist=()
# Allow console login?
allowconsole=yes

Loading…
Cancel
Save