zenity 3.8 --list outputs first answer twice separated by a pipe

Bug #1247137 reported by Kevin Brubeck Unhammer
20
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Zenity
Unknown
Unknown
zenity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Selecting the first item from

$ zenity --list --column "Item" Apples Oranges Pears Toothpaste

now returns

`Apples|Apples`

while in 3.6 it returned just `Apples`.

Similarly,

$ zenity --list --column "id" --column "Item" 1 Apples 2 Oranges 3 Pears 4
Toothpaste

now returns `1|1` instead of `1`.

This messes up a lot of scripts expecting the old behaviour.

(originally reported at https://bugzilla.gnome.org/show_bug.cgi?id=711251 but the bug doesn't appear in git master, nor apparantly in 3.8 as installed by the developer)

Revision history for this message
Kevin Hughes (kevin-hugheshome) wrote :

Confirmed as happening to me also exactly as previously described. Using LinuxMint 16, Zenity version is 3.8.0-1.

Revision history for this message
Tyler Wagner (tyler) wrote :

I have added this to the commands of all my zenity calls:

zenity --list --column "Item" Apples Oranges Pears Toothpaste | cut -f 1 -d '|'

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zenity (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Broadhead (pjbroad) wrote :

This is fixed in upstream commit: 7c234ed9b71d5f009abff509ef2bf576f61a0cbb

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.