hplip/hp-systray.wrapper
Johannes Meixner 2b2fdc2713 Accepting request 51497 from home:jsmeix:branches:Printing
Version upgrade to 3.10.9 and added hp-systray.wrapper to increase desktop startup speed (bnc#649280)

OBS-URL: https://build.opensuse.org/request/show/51497
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=16
2010-10-27 15:37:28 +00:00

18 lines
691 B
Bash

#! /bin/bash
# Be polite and sleep a bit to let more important processes go ahead
# (in particular after booting let the cupsd finish its startup):
sleep 10
# Run hp-systray only if an appropriate local print queue exists
# (i.e. on localhost a queue with a "hp:/..." DeviceURI)
# see https://bugzilla.novell.com/show_bug.cgi?id=649280
# otherwise and in case of any error do an unnoticeable exit:
set -o pipefail
lpstat -h localhost -v | grep -q ': hp:/' || exit 0
# Replace this wrapper with the actual command
# so that it exits with the exit code of the command
# and that the command gets any signals directly,
# see https://bugzilla.novell.com/show_bug.cgi?id=499735
exec hp-systray