Bug 16091 - hplip-systray is started prematurely
Summary: hplip-systray is started prematurely
Status: RESOLVED DUPLICATE of bug 16946
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2015-06-08 15:34 CEST by Frank Griffin
Modified: 2016-01-19 13:50 CET (History)
2 users (show)

See Also:
Source RPM: hplip-gui
CVE:
Status comment:


Attachments

Description Frank Griffin 2015-06-08 15:34:29 CEST
This doesn't appear to trouble most systems, but on some systems after logging into KDE you get a popup error saying that the hplip stuff can't be installed because there is no system tray.

What's actually happening is that hplip is running before KDE has created the system tray.

This was reported and solved on the net in 2012, but upstream (HP) doesn't seem to care about it.  The fix is extremely simple.

In /etc/xdg/autostart/hplip-systray.desktop, the line:

      Exec=hp-systray -x

needs to be replaced by

      Exec=sh -c "sleep 15; exec hp-systray -x"

Some posters went as far as 45 seconds, but 15 fixed it on my system.

We should probably have a patch for this.  It's especially confusing as hplip-gui often gets installed on systems which don't have HP printers attached.

Reproducible: 

Steps to Reproduce:
Comment 1 Luc Menut 2015-06-08 23:35:19 CEST
(In reply to Frank Griffin from comment #0)
> This doesn't appear to trouble most systems, but on some systems after
> logging into KDE you get a popup error saying that the hplip stuff can't be
> installed because there is no system tray.
> 
> What's actually happening is that hplip is running before KDE has created
> the system tray.
> 
> This was reported and solved on the net in 2012, but upstream (HP) doesn't
> seem to care about it.  The fix is extremely simple.
> 
> In /etc/xdg/autostart/hplip-systray.desktop, the line:
> 
>       Exec=hp-systray -x
> 
> needs to be replaced by
> 
>       Exec=sh -c "sleep 15; exec hp-systray -x"
> 

Please, could you try to add in hplip-systray.desktop this line:
X-KDE-autostart-after=panel
while keeping the original "Exec=hp-systray -x"

This should be the proper fix for this issue.
cf. http://quickgit.kde.org/?p=kdelibs.git&a=blob&f=kinit%2FREADME.autostart&o=plain

CC: (none) => lmenut

Samuel Verschelde 2015-06-09 10:19:52 CEST

CC: (none) => thomas
Whiteboard: (none) => MGA5TOO

Samuel Verschelde 2016-01-19 10:02:17 CET

Keywords: (none) => NEEDINFO

Comment 2 Frank Griffin 2016-01-19 13:33:50 CET
Sorry, this fell through the cracks.  I'll try this, although https://bugs.mageia.org/show_bug.cgi?id=16946 indicates that hp-systray shouldn't be starting at all on systems without an HP printer.
Comment 3 Frank Griffin 2016-01-19 13:46:14 CET
Hmm.  There isn't actually an hplip-systray.desktop, just an hplip.desktop which makes no reference to hp-systray.
Comment 4 Frank Griffin 2016-01-19 13:50:46 CET
See bug#16946

*** This bug has been marked as a duplicate of bug 16946 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.