Hello, On Jun 3 15:33 Zbigniew Luszpinski wrote (shortened): > Another kind of problem like this is in KDE. When hplip service > is not running and I click on "HP Device Manager" in K menu > it not starts and not displays anythig.
We try to work around this problem with a wrapper script which we call instead of hp-toolbox from our desktop menues (too long lines may wrap here in this mail): ------------------------------------------------------------------- #! /bin/bash # If possible use the KDE program kdialog # otherwise fall back to the generic X program xmessage. if test -x $( type -p kdialog ) then PopupProgram='kdialog --error' else PopupProgram='xmessage' fi # If hp-toolbox cannot access a hplip device # then it doesn't show up on the X window system. # It only shows an 'ERROR...' or 'error...' message on stderr # but exits nevertheless with zero exit code. # Note that one cannot grep for '^error' because there are leading # escape codes (e.g. "esc [ 3 1 ; 0 1 m") in the output lines. if test -x $( type -p hp-toolbox ) then hp-toolbox 2>&1 1>/dev/null | grep -q -i 'error' && $PopupProgram 'No HP all-in-one device found (those devices require a special setup).' else $PopupProgram 'Cannot execute hp-toolbox.' fi ------------------------------------------------------------------- The correct fix is that any hp-* tool actually shows up on the user's desktop even when it can only report an error to the user and of course it must exit with non-zero exit code in this case. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ HPLIP-Devel mailing list HPLIP-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hplip-devel