regression: lost ability to show continuous status with tray/appindicator icon

Bug #884011 reported by Peter-Alexander
74
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Zenity
In Progress
Medium
zenity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The change in the "zenity --notification" behavior completely removed the functionality to display an unobtrusive, always visible tray icon from zenity.

For clarity, the tray icon functionality should be made available with a proper "zenity --trayicon" feature.

For backwards compatibility, the --notification option would have to continue to show an icon. It may do so only together with the the --listen option (this then implies status updates should follow), and emit only a simple notification bubble and exit otherwise.

---
Ubuntu 11.10
zenity 3.2.0-0ubuntu1

In a script I use following line:
exec 3> >(zenity --notification --window-icon="icon.svg" --listen --text="some text")
so I can change the tray icon based on what the script does.

What I expect to happen:
"zenity --notification" should show an icon in the tray or appindicator.

What happens instead:
A "zenity --warning" style dialog window pops up.

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
Paillomams (aymeric-pallottini) wrote :

Same configuration and same beahaviour even if zenity is added in the systray-whitelist. I didn't have this issue with 11.04.

Revision history for this message
pubpub (pub-david) wrote :

Hi,
I've got the same annoying problem using unity 11.10,and I've just got a work around : I've replaced zenity by yad (requires yad package installation of course and to add it to the dconf-editor desktop>unity>panel whitelist)
Hope it will help any one...

Revision history for this message
jpfle (jpfle) wrote :
Revision history for this message
ceg (ceg) wrote :

The functionality to display a status icon continuously still remains a requirement, and this is a zenity regression.

Reducing "zenity --notification" to implement just notifications (same as "notify-send") may be OK, but then a separate "zenity --trayicon" is required to maintain the functionality.

The replacement "zenity --trayicon --listen" should allow to change trayicon, tooltip, menus, etc., and also to close/quit the trayicon without user interaction.

ceg (ceg)
description: updated
summary: - zenity doesn't show tray/appindicator icon
+ regression: lost ability to show continuous status with
+ tray/appindicator icon
description: updated
ceg (ceg)
description: updated
Revision history for this message
Peter-Alexander (pp78) wrote :

Hello ceg,
you have edited my bug report and somehow I agree to you and somehow I don't.
I agree to you that displaying a tray icon is still a requirement.
I disagree that moving that function to a different option name is ok. It would be ok to implement a new function with a new name that does what --notification does now. Everything else would be a regression because it breaks all scripts which rely on 'zenity --notification'.

Revision history for this message
ceg (ceg) wrote :

Hi Peter-Alexander,
you're right, and I agree it still is a regression looking at the --notification function alone. As far as I understand the reason for the change was the decision for an updated semantic. Notification now only means a bubble message, and is different from a status icon or window. Going with this might be more precise. But changing this without giving apps the chance to adopt and use a --trayicon option if they actually do need a continuous status indication one is really bad.

ceg (ceg)
description: updated
Revision history for this message
ceg (ceg) wrote :

In any case, it would be good if you could post the issue to the upstram bugtracker.

description: updated
ceg (ceg)
Changed in zenity:
importance: Undecided → Unknown
status: New → Unknown
Changed in zenity:
importance: Unknown → Medium
status: Unknown → New
Changed in zenity:
status: New → In Progress
Revision history for this message
andso (andso) wrote :

hello
this bug is always alive and is present in xubuntu too (12.04).

zenity 3.4.0-0ubuntu4
xubuntu-desktop 2.152+ppa2

Revision history for this message
andso (andso) wrote :

 pubpub (pub-david) wrote on 2012-01-05: #3

Hi,
I've got the same annoying problem using unity 11.10,and I've just got a work around : I've replaced zenity by yad (requires yad package installation of course and to add it to the dconf-editor desktop>unity>panel whitelist)
Hope it will help any one...

as he said
the problem is resolved, but all programs using zenity have to be rewriting.
That's a non-sense.

Take care of these regressions, linux suffers of this.
it's the second bug, the first one being resolved.

Revision history for this message
Peter-Alexander (pp78) wrote :

Now it worse than before. I've upgraded to Ubuntu 13.04 and now it's impossible to display systray icons. There is no whitelisting for systray icons anymore. The only exceptions are wine and java which are hardcoded. Everything else is blocked. yad too.

I guess someone needs to write indicator integration for yad and/or zenity. The other option is switching away from ubuntu.

Revision history for this message
Arx Cruz (arxcruz) wrote :

Hello,

I don't use Ubuntu / Unity, but I propose a patch to have the --trayicon again. Can someone test with the latest code and let me know if works or not?

https://bugzilla.gnome.org/show_bug.cgi?id=675064

Also, I'll be glad if someone send patches to fix it.

Kind regards

Revision history for this message
Norbert (nrbrtx) wrote :

Bug exists in Ubuntu 12.04.5.
I unable to use "zenity --notification" in Unity and GNOME session.

But "zenity --notification" works as expected in MATE session.

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.