Why is hp-systray run even if there is no matching print queue?

Asked by Johannes Meixner

See
https://bugzilla.novell.com/show_bug.cgi?id=649280

Currently hp-systray runs in any case during deskop start-up
via /etc/xdg/autostart/hplip-systray.desktop
regardless whether or not a matching print queue
(probably a queue with a "hp:/..." DeviceURI) exists.

This wastes CPU and in particular disk-IO resources
while the desktop starts up which delays the desktop
start up procedure.

In particular hp-systray runs on any user's desktop
even if there is no HP device at all connected
to his computer.

Is there a special reason why hp-systray should run
in any case?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Meixner
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Meixner (jsmeix) said :
#1

We (i.e. Novell/openSUSE) think about a wrapper script
which starts hp-systray only if a matching print queue exists, see
https://bugzillafiles.novell.org/attachment.cgi?id=397258

Revision history for this message
Johannes Meixner (jsmeix) said :
#2

In our hplip RPM changelog I found some interesting entries:
----------------------------------------------------------------------------
Tue Sep 9 14:33:28 CEST 2008 - <email address hidden>
...
- Updated to version 2.8.5:
  Major toolbox (HP Device Manager) revamp/refresh.
  More dbus support (live status updating).
  hp-systray will exit if no HPLIP installed queues found which
  obsoletes HPLIP-2.8.4-systray_exit_if_no_device_2.patch
.
.
.
Thu Apr 10 15:55:42 CEST 2008 - <email address hidden>
- 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,
  see the entry below and Novell/Suse Bugzilla bnc#377885.
...
Tue Apr 8 14:56:53 CEST 2008 - <email address hidden>
- Added hp-systray.wrapper which is a wrapper for hp-systray
  which runs it only if there is a 'hp:/...' print queue
  and changed /etc/xdg/autostart/hplip-systray.desktop
  to run the wrapper, see Novell/Suse Bugzilla bnc#377885.
----------------------------------------------------------------------------

I.e. we had this issue already a longer time ago
and since HPLIP version version 2.8.5 it should be fixed in HPLIP
but somehow it is again run in any case (I don't know since
which HPLIP version it runs again in any case).

Therefore from my point of view the issue looks like a bug in HPLIP.

Revision history for this message
Johannes Meixner (jsmeix) said :
#3