Репозитории ALT
S: | 3.23.8-alt1 |
5.1: | 3.11.5-alt0.M51.1 |
4.1: | 2.8.10-alt2.M41.1 |
4.0: | 2.7.12-alt2.M40.1 |
+backports: | 2.8.10-alt2.M40.1 |
3.0: | |
+backports: | 1.6.6a-alt0.M30.4.1 |
Группа :: Издательство
Пакет: hplip
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#! /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