From 0931bb698f8f120599c176c9bcd518a534f3fd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Tue, 6 Nov 2012 23:02:52 +0100 Subject: [PATCH] but namelist should really contain only the basename --- src/cdm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.