GNOME Bugzilla – Bug 675068
No tray icon interaction possible (patches overlooked)
Last modified: 2021-05-25 17:45:20 UTC
A status icon that created in the system tray with zenity (to be updated with status changes) lacks ways for user interaction. (A universal follow up patch that provides the funcionality was overlooked, because of the specific use case of the original reporter and patch. The good patch: attachment (id=81348) https://bugzilla.gnome.org/attachment.cgi?id=81348) The patch introduces menu item interaction for tray icons. It does this by allowing "zenity --listen" to print (user-settable) messages on stdout in response to a click. It also lets the user define a menu, where each item prints specific messages to stdout. For some very specific and basic use cases (no menu, no choice), it was proposed to to add something like "--on-click-command=gnome-terminal" to the command line options and let zenity execute the command upon clicking the icon. However, for this simplistic case, it should be enough to let zenity --exit-on-click, or after receiving a "onclick:close" command (patch available at Bug 559848 attachment (id=122220) https://bugzilla.gnome.org/attachment.cgi?id=122220) The calling script may then continue to execute whatever command is appropriate. (Note that there is currently a regression in the ability to provide a status (tray) icon (Bug 675064).
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/zenity/-/issues/ Thank you for your understanding and your help.