"zenity --question" does not return code

Bug #195796 reported by Martijn Bastiaan
4
Affects Status Importance Assigned to Milestone
zenity (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Hello,
I quote from the man-page of zenity:
" Display a dialog, asking Microsoft Windows has been found! Would you
       like to remove it?. The return code will be 0 (true in shell) if OK is
       selected, and 1 (false) if Cancel is selected.

              zenity --question --title "Alert" --text "Microsoft Windows
              has been found! Would you like to remove it?"
"
If I do "zenity --question" on a terminal and click OK, there's nothing returned. If I do the same and click Cancel, it too doesn't return anything.

What's up?

Martje

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Thanks for your report, but I don't think this is a bug. The values that zenity returns are exit values; it isn't text printed to the screen.

You can catch exit values in the terminal by executing "echo $?" just after zenity; for example: «zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"; echo $?».

If you don't get any output with the previous code, feel free to reopen this bug, and don't hesitate to report any other issue you might find.

Changed in zenity:
importance: Undecided → Low
status: New → Invalid
Revision history for this message
Pedro Villavicencio (pedro) wrote :

confirming, thanks for your report.

Changed in zenity:
assignee: nobody → desktop-bugs
status: Invalid → Confirmed
Revision history for this message
Martijn Bastiaan (hmb1) wrote :

Siegfried Gevatter,
Thank you, the bug is indeed invalid, sorry.

Pedro Villavicencio,
Please read the post of Siegfried, the bug is invalid.

Changed in zenity:
status: Confirmed → Invalid
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.