Bug 16946 - hp-systray started without sleep
Summary: hp-systray started without sleep
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
: 16091 (view as bug list)
Depends on:
Blocks: 17523
  Show dependency treegraph
 
Reported: 2015-10-12 02:11 CEST by Frank Griffin
Modified: 2016-05-05 09:02 CEST (History)
5 users (show)

See Also:
Source RPM: task-plasma
CVE:
Status comment:


Attachments

Description Frank Griffin 2015-10-12 02:11:26 CEST
There has been an outstanding bug in KDE for a while in that hp-systray is included in autostart but kde tries to start it before the system tray is actually created, leading to a bogus popup error saying that it can't start because no system tray exists.

The workaround in KDE4 (which MGA never implemented to my knowledge) was to replace the startup command "hp-systray" with "sh -c sleep 15;hp-systray".

However, in plasma, there is no mention in Autostart of hp-systray, and this error is back.

I presume that plasma is using some other mechanism to start hp-systray, so a new workaround is needed.  I'm starting with plasma because the execution of hp-systray is clearly linked to the system tray, and it wouldn't make sense to have it launched by anything else.  If I'm wrong, please reassign.

If this isn't desktop-specific, perhaps the solution is to have hp-systray (which is a link to a python executable) be replaced by a script which does a sleep before invoking hp-systray.

Reproducible: 

Steps to Reproduce:
Samuel Verschelde 2015-10-12 09:25:37 CEST

Assignee: bugsquad => mageia

Comment 1 Frank Griffin 2015-11-03 03:25:14 CET
(In reply to Frank Griffin from comment #0)
> 
> If this isn't desktop-specific, perhaps the solution is to have hp-systray
> (which is a link to a python executable) be replaced by a script which does
> a sleep before invoking hp-systray.

I did exactly this, and it works fine.  Ping ?
Comment 2 Marja Van Waes 2016-01-17 14:23:32 CET
ah, thx for telling me about this report, Frank, I had missed it.

CC: (none) => marja11

Comment 3 Rémi Verschelde 2016-01-19 09:42:23 CET
I believe the autostart of hp-systray is triggered in a desktop-independent way by /etc/xdg/autostart/hp-systray.desktop, so a fix could be set there.

Though I'd also like a way to *disable* this autostart, right now I have to delete the file as I don't want the hp-systray to start when I have no hp printer (but all printer-related stuff requires hplip and thus hp-systray... but that's another issue).

Blocks: (none) => 17523

Comment 4 Rémi Verschelde 2016-01-19 09:44:01 CET
Assigning to all packagers collectively as the fix should likely be made in hplip.

CC: (none) => mageia
Assignee: mageia => pkg-bugs

Comment 5 Marek Laane 2016-01-19 10:00:27 CET
dup of https://bugs.mageia.org/show_bug.cgi?id=16091?
Comment 6 Samuel Verschelde 2016-01-19 10:01:51 CET
(In reply to Marek Laane from comment #5)
> dup of https://bugs.mageia.org/show_bug.cgi?id=16091?

It looks like a duplicate. Frank, can you comment?
Comment 7 Frank Griffin 2016-01-19 13:49:27 CET
(In reply to Samuel VERSCHELDE from comment #6)
> (In reply to Marek Laane from comment #5)
> > dup of https://bugs.mageia.org/show_bug.cgi?id=16091?
> 
> It looks like a duplicate. Frank, can you comment?

Yes, indeed.  I'll mark the older one as a dup since there's more information here.
Comment 8 Frank Griffin 2016-01-19 13:50:46 CET
*** Bug 16091 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Spuhler 2016-01-20 06:42:46 CET
Bug #16091 says mga5 too. I cannot duplicate it in mga5 and I have 6 boxes, 4 on real HW and one on VBOX

CC: (none) => thomas

Comment 10 Florian Hubold 2016-01-21 18:01:10 CET
It doesn't happen all of the time, and only on KDE so far. Can we just agree on adding the fix from https://bugs.mageia.org/show_bug.cgi?id=16091#c1 as it shouldn't hurt at all ...

CC: (none) => doktor5000

Comment 11 José Jorge 2016-01-21 18:09:17 CET
(In reply to Florian Hubold from comment #10)
> It doesn't happen all of the time, and only on KDE so far. Can we just agree
> on adding the fix from https://bugs.mageia.org/show_bug.cgi?id=16091#c1 as
> it shouldn't hurt at all ...

Yes, it looks better.

CC: (none) => lists.jjorge

Comment 12 Frank Griffin 2016-01-21 18:18:57 CET
(In reply to Florian Hubold from comment #10)
> It doesn't happen all of the time, and only on KDE so far. Can we just agree
> on adding the fix from https://bugs.mageia.org/show_bug.cgi?id=16091#c1 as
> it shouldn't hurt at all ...

But the suggestion in that bug can't be implemented...
Comment 13 Florian Hubold 2016-01-23 10:02:10 CET
(In reply to Frank Griffin from comment #12)
> But the suggestion in that bug can't be implemented...

Why not? Just add X-KDE-autostart-after=panel to the .desktop file.
Comment 14 Frank Griffin 2016-01-23 13:39:16 CET
See https://bugs.mageia.org/show_bug.cgi?id=16091#c3 .  There's no such desktop file and no mention of systray in the hplip.desktop file.
Comment 15 Rémi Verschelde 2016-01-23 14:32:22 CET
(In reply to Frank Griffin from comment #14)
> See https://bugs.mageia.org/show_bug.cgi?id=16091#c3 .  There's no such
> desktop file and no mention of systray in the hplip.desktop file.

Well (the ".bak" comes from the fact that I moved this file to avoid getting the annoying systray starting up when I don't use any HP printer):

$ cat /etc/xdg/autostart/hplip-systray.desktop.bak 
[Desktop Entry]
Version=0.6
Type=Application
Name=HP System Tray Service
GenericName=Printer Status Applet
Comment=HP System Tray Service
Exec=hp-systray -x
Icon=/usr/share/hplip/data/images/128x128/hp_logo.png
Terminal=false
Categories=Application;Utility;
X-KDE-StartupNotify=false
StartupNotify=false
Comment 16 Rémi Verschelde 2016-01-23 14:39:57 CET
I pushed the fix proposed in https://bugs.mageia.org/show_bug.cgi?id=16091#c1
Comment 17 Rémi Verschelde 2016-01-23 14:40:06 CET
(In reply to Rémi Verschelde from comment #16)
> I pushed the fix proposed in https://bugs.mageia.org/show_bug.cgi?id=16091#c1

http://svnweb.mageia.org/packages?view=revision&revision=926656
Comment 18 Frank Griffin 2016-01-23 15:48:45 CET
OK, my mistake, sort of.  The fix in the other bug mentioned hplip-systray.desktop, but didn't specify the directory.  I assumed in was in /usr/share/applications with all the others.
Comment 19 Florian Hubold 2016-01-24 11:31:07 CET
Everything that is getting automatically run via a .desktop file is in /etc/xdg/autostart
See http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html
Comment 20 Nicolas Lécureuil 2016-03-21 12:56:32 CET
is it OK now ?
Comment 21 Nicolas Lécureuil 2016-05-05 09:02:58 CEST
i don't see any error anymore

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


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