"zenity --question" does not return code
Bug #195796 reported by
Martijn Bastiaan
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.
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
To post a comment you must log in.
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.