Comment 3 for bug 213938

Revision history for this message
Johannes Meixner (jsmeix) wrote :

Many thanks for the fast patch!

The patch works but in many cases it does not work because of
https://bugs.launchpad.net/hplip/+bug/162196

For example on my workstation with CUPS 1.3.5:
------------------------------------------------------------------------
jsmeix@nelson:~> locale
LANG=en_GB.iso885915
LC_CTYPE="en_GB.iso885915"
LC_NUMERIC="en_GB.iso885915"
LC_TIME="en_GB.iso885915"
LC_COLLATE="en_GB.iso885915"
LC_MONETARY="en_GB.iso885915"
LC_MESSAGES="en_GB.iso885915"
LC_PAPER="en_GB.iso885915"
LC_NAME="en_GB.iso885915"
LC_ADDRESS="en_GB.iso885915"
LC_TELEPHONE="en_GB.iso885915"
LC_MEASUREMENT="en_GB.iso885915"
LC_IDENTIFICATION="en_GB.iso885915"
LC_ALL=en_GB.iso885915

jsmeix@nelson:~> hp-systray

HP Linux Imaging and Printing System (ver. 2.8.4)
System Tray Status Service ver. 0.1

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting.

jsmeix@nelson:~> lpstat -v | egrep 'hp:/|hpfax:/'
device for HP_LaserJet_1020: hp:/usb/HP_LaserJet_1020?serial=JL50HRE
device for HP_LaserJet_1220: hp:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX
device for lj1220ps: hp:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX
device for Officejet_7200: hp:/net/Officejet_7200_series?ip=10.10.100.100
device for Officejet_7200_fax: hpfax:/net/Officejet_7200_series?ip=10.10.100.100

jsmeix@nelson:~> export LC_ALL=POSIX
jsmeix@nelson:~> export LANG=POSIX

jsmeix@nelson:~> hp-systray

HP Linux Imaging and Printing System (ver. 2.8.4)
System Tray Status Service ver. 0.1

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

------------------------------------------------------------------------