GNOME Bugzilla – Bug 698683
Double clicking an item or hitting enter after selecting an item returns it twice ("option|option") while clicking OK returns it once ("option")
Last modified: 2013-05-23 19:31:19 UTC
A little example: #!/bin/bash title="Server Options" prompt="Pick an option:" options=("option 1" "option 2" "option 3") while opt=$(zenity --width 500 --height 300 --title="$title" --text="$prompt" --list --column="Options" "${options[@]}"); do case "$opt" in "${options[0]}" ) zenity --info --text "option 1";; "${options[1]}" ) zenity --info --text "option 2";; "${options[2]}" ) zenity --info --text "option 3";; esac done Double click an option or click and hit enter does not execute: zenity --info --text "option X" , as it should. Click an option and hit OK works as expected.
I'm seeing this bug as well. It's especially bad with the --multiple option, in which case only the first item of the selection is returned (twice) when you press enter.
Fixed on master.