diff --git a/src/cdm b/src/cdm index 18c7148..3663685 100755 --- a/src/cdm +++ b/src/cdm @@ -89,8 +89,8 @@ if [[ "$binlist" == "()" ]]; then binlist=($(find /etc/X11/Sessions -maxdepth 1 -type f)) for ((i=0; i<${#binlist[@]}; i++)); do declare flaglist[$i]="X" + declare namelist[$i]=$(basename ${binlist[$i]}) done - namelist=(${binlist[@]^}) fi # Generate the main menu.