contrib/qiv/ss-qiv
2008-04-01 04:32:12 +02:00

17 lines
373 B
Bash

#!/bin/sh
msgError() {
echo "Error, $@" 2>&1
exit 1
}
[ ! -x /usr/bin/xhost ] && msgError "'xorg-xhost' package not found"
[ ! -x /usr/bin/xrdb ] && msgError "'xorg-xrdb' package not found"
[ ! -x /usr/bin/xscreensaver ] && msgError "'xscreensaver' package not found"
xhost +`hostname` 1> /dev/null
xrdb < /usr/etc/qivrc
xscreensaver 1> /dev/null &
# End of file