I am attempting to build a zenity interface calling one of a bunch of scripts located in a specific folder. For this, I am relying on zenity --list
. I want the list to have two columns: 1) script filename and 2) description text [from the third row's comment, within the script file itself].
I can make a single-column for a filename-only interface, without a problem. The problem here comes up when I wish to use a second column for description, trying to mimick the following example:
zenity --list \
--title="Choisissez les bogues à afficher" \
--column="N° de bogue" --column="Gravité" --column="Description" \
992383 Normal "GtkTreeView plante lors de sélections multiples" \
293823 Grave "Le dictionnaire GNOME ne prend pas de proxy en charge" \
393823 Critique "L'édition de menu ne fonctionne pas avec GNOME 2.0"
More simply, I would like to understand why the two following set of commands do not provide similar results, from a terminal:
$ zenity --list --title="Choose script" --column="Script" --column="Description" a.sh "chaise longue" b.sh "moineau"
and
$ TESTSTRING='a.sh "chaise longue" b.sh "moineau"'
$ echo $TESTSTRING
a.sh "chaise longue" b.sh "moineau"
$ zenity --list --title="Choose script" --column="Script" --column="Description" $TESTSTRING