After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675068 - No tray icon interaction possible (patches overlooked)
No tray icon interaction possible (patches overlooked)
Status: RESOLVED OBSOLETE
Product: zenity
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-29 11:43 UTC by Mic
Modified: 2021-05-25 17:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mic 2012-04-29 11:43:07 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).
Comment 1 André Klapper 2021-05-25 17:45:20 UTC
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.