Bug 377885

Summary: /etc/xdg/autostart/hplip-systray.desktop runs hp-systray in any case
Product: [openSUSE] openSUSE 11.0 Reporter: Johannes Meixner <jsmeix>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: coolo, gp, joe_morris
Version: Alpha 3   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Johannes Meixner 2008-04-08 10:46:57 UTC
/etc/xdg/autostart/hplip-systray.desktop runs hp-systray
even if there is no print queue for a HPLIP device.

It is not possible that each driver package just runs
its own tray application by default regardless if
the driver is needed at all.

I will try to I add a /usr/bin/hp-systray.wrapper which
is called by /etc/xdg/autostart/hplip-systray.desktop

The wrapper tests if there is a print queue with hp:/
device URI and only if yes, it starts hp-systray
otherwise it exits silently.
Comment 1 Timo Hoenig 2008-04-08 12:19:39 UTC
I recently ran into this issue.  Why is the hplip package installed by default?  I don't want it.
Comment 2 Johannes Meixner 2008-04-08 13:13:10 UTC
FIXED and submitted to STABLE.

FYI:
The upstream report is:
https://bugs.launchpad.net/bugs/213938
Comment 3 Johannes Meixner 2008-04-09 10:46:21 UTC
I got a patch for hp-systray from upstream which
obsoletes the hp-systray.wrapper woraround.
Comment 4 Gerald Pfeifer 2008-04-09 12:43:58 UTC
I'm also seeing this, with STABLE as of yesterday, so I assume I'll need
to wait another day or two until the change has propagated.
Comment 5 Stephan Kulow 2008-04-09 12:50:51 UTC
STABLE? NO idea what that is - but Factory was synced out on 5th the last time and this bug was opened on 8th.
Comment 6 Johannes Meixner 2008-04-09 13:08:37 UTC
As a temporary workaround to simply suppress it completely, do
ln -sf /bin/true /usr/bin/hp-systray
Comment 7 Johannes Meixner 2008-04-10 14:23:47 UTC
HPLIP-2.8.4-systray_exit_if_no_device_2.patch lets hp-systray
exit if the HPLIP driver seems to be not in use (i.e. if there
is neither a 'hp:/...' nor a 'hpfax:/...' print queue), see
https://bugs.launchpad.net/hplip/+bug/213938
This patch obsoletes the whole hp-systray.wrapper stuff.
Comment 8 Joe Morris 2008-04-15 11:19:03 UTC
Just to let you know, I am now running 2.8.4-25.1, and it is working great.  So far I have not experienced a single problem with it, and the systray applet is working great.  Thanks for all your work!