double click in list print two time the selected item

Bug #1267788 reported by Emerginov
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
zenity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,
I used zenity in my script for years.
In ubuntu saucy, if you try to double on an item in a zenity list, it will be printed two times at the end (with pipe separator) just like if you selected two items.

How to reproduce, in a command line:
$ zenity --list --column Pet Chien Chat

Double click on on item, see the result in the terminal:
Chien|Chien

Expected result:
Chien

Try with simple clic and 'Ok' button, it will be printed only once.

By the way, thank you guys for your job.

Zenity version: 3.8.0-1
Ubuntu version: saucy

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
Arx Cruz (arxcruz) wrote :

Hello,

I'm the actual maintainer of zenity.
This is already fixed in the git master.
By the way, zenity is already in version 3.14.

Kind regards
Arx Cruz

Revision history for this message
Deevad (deevad) wrote :

Zenity 3.8 version is also in 14.04 , and so in all Linux Mint 17.x , and all Elementary O.S.
( Long term support, till 2019 afaik ) ; That's why I post here thisworkaround for those doing Bash script on this platform and getting stuck by this bug :

#!/bin/bash
menuchoice=$(zenity --list --column Pet Chien Chat);
menuchoicecleaned=${menuchoice%|*}
echo "$menuchoicecleaned"

This return single
Chien
or
Chat
in every case.

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

Other bug subscribers

Remote bug watches

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