FS#45650 - [hplip] hp-systray fails to recognize that it **is** in the system tray

Attached to Project: Arch Linux
Opened by Justin Zane Chudgar (justinzane) - Tuesday, 14 July 2015, 22:42 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 15 December 2015, 22:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Antonio Rojas (arojas)
Felix Yan (felixonmars)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
`/usr/bin/hp-systray` Fails to recognize that it **is** in the system tray when launched from `~/.config/autostart/hp-systray.desktop`. This is using an up-to-date KDE KF5/Plasma desktop. As is visible in the attached screenshot, on login, the HP system tray applet launches and is visible in the actual system tray. However, it shows an error that the system tray is not found and exits. While this is not critical, it is hugely annoying for non-technical users.

This has been tested on an x86_64 system. This has occurred over the past two 'extra/' repo releases of the kf5 and plasma packages.

Additional info:
* package version(s)
Version : 3.15.6-1
* config and/or log files etc.

# hp-systray.desktop
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=/usr/bin/hp-systray
GenericName[en_US]=
GenericName=
Icon=system-run
MimeType=
Name[en_US]=
Name=
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-autostart-after=
X-KDE-autostart-condition=
X-KDE-autostart-phase=
X-KDE-SubstituteUID=false
X-KDE-Username=
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 15 December 2015, 22:29 GMT
Reason for closing:  Fixed
Comment by Justin Zane Chudgar (justinzane) - Tuesday, 14 July 2015, 22:44 GMT
NOTE: I filed the bug here because I cannot manage to log in to upstream to report it properly. The Arch package does not seem to be the problem, it seems to be an upstream bug. I apologize for misfiling, but I am asking for help in getting this filed properly upstream. Thank you.
Comment by Jan de Groot (JGC) - Wednesday, 15 July 2015, 08:42 GMT
What happens when you start this from a terminal instead of autostart? Could be a timing issue where systray is not available yet when hplip is starting.

If this works from terminal, you could try using the X-KDE-autostart-* variables to delay startup until after the systray is ready.

Comment by Justin Zane Chudgar (justinzane) - Wednesday, 15 July 2015, 22:38 GMT
It does indeed work when started from a console or krunner after the login and plasma startup has happened. I'm not exactly sure what to tweak in the X-KDE-autostart-<foo> arena. The documentation -- http://l10n.kde.org/docs/admin/autostart-and-runonce.html and https://github.com/vasi/kdelibs/blob/master/kinit/README.autostart -- are rather unclear for someone who is a casual user.

And, I find that the fact the applet does actually appear in the tray means that this is actually a bug. If the applet did not appear in the tray and notified the user of that situation, all would be good. The bug is that the error condition does not actually exist. The hp-systray code fails to detect that it is in the tray. This seems like a timing issue within the hp-systray code or within its dependencies.

My opinion is that anyone who is able really wants a tray applet -- like my wife -- is not sufficiently skilled to determine how to adjust X-KDE-autostart settings. While most Arch users are capable, I presume, upstream should really not rely on console skills for the functionality of consumer grade printer GUI components.

Thanks.
Comment by Andreas Radke (AndyRTR) - Monday, 09 November 2015, 14:19 GMT
Please bring it upstream in some way. Meanwhile you can try to put some "sleep x" into the startscript.
Comment by Justin Zane Chudgar (justinzane) - Friday, 13 November 2015, 23:14 GMT
@AndyRTR "NOTE: I filed the bug here because I cannot manage to log in to upstream to report it properly." I've tried to file upstream and been unable to. I was hoping that someone would be kind enough to file it on my behalf. Thanks.
Comment by Andreas Radke (AndyRTR) - Saturday, 14 November 2015, 12:34 GMT
http://hplipopensource.com/hplip-web/support.html - this leads to UbuntuOne - it should be easy for you to login there and ask or report a bug.

I can't do this for you providing your logs and so on. So far you're the only one reporting this.
Comment by Andreas Radke (AndyRTR) - Saturday, 14 November 2015, 12:35 GMT
Assing also to our kde maintainers. Maybe they have seen similar issues before.
Comment by Antonio Rojas (arojas) - Thursday, 10 December 2015, 07:29 GMT
Please test Plasma 5.5, the systray icon implementation has been completely reworked. Remove sni-qt first if you have it installed.
Comment by Justin Zane Chudgar (justinzane) - Tuesday, 15 December 2015, 22:22 GMT
FIXED in 5.5.0.

-----

Note to anyone who does meta-review: the assignees to this bug have been excellent at keeping in touch, even though I, the submitter, ought to have submitted upstream! Thanks for making Arch excellent even for us useless types. :)

Loading...