|
|
@ -87,10 +87,8 @@ serverargs=${serverargs:-'-nolisten tcp'}
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${#binlist[@]}" == 0 ]]; then
|
|
|
|
if [[ "${#binlist[@]}" == 0 ]]; then
|
|
|
|
binlist=($(find /etc/X11/Sessions -maxdepth 1 -type f))
|
|
|
|
binlist=($(find /etc/X11/Sessions -maxdepth 1 -type f))
|
|
|
|
for ((i=0; i<${#binlist[@]}; i++)); do
|
|
|
|
flaglist=($(sed 's/[[:digit:]]\+/X/g' <<< ${!binlist[@]}))
|
|
|
|
declare flaglist[$i]="X"
|
|
|
|
namelist=(${binlist[@]##*/})
|
|
|
|
declare namelist[$i]=$(basename ${binlist[$i]})
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Generate the main menu.
|
|
|
|
# Generate the main menu.
|
|
|
|