Update the start script

This commit is contained in:
Yamagi Burmeister 2011-10-04 19:14:11 +00:00
parent c50f610cb2
commit 6be8120804
2 changed files with 14 additions and 4 deletions

3
TODO
View file

@ -6,7 +6,6 @@ client:
- Integrate a signalhandler and print an backtrace with Maxims
libexecinfo (only 2 sourcefiles, BSD licensed)
- Integrate caedes systemwide installation patches
- Add extremly high resolutions
- Add a optional overwrite for the defaults.cfg
- Rename the config.cfg to yq2config.cfg for compatiblity with other
sourceports
@ -15,8 +14,6 @@ doc:
- Write a new, much more polished homepage
- Rework the startup script:
- Add unclutter
- Activate coredumps on linux
- Remove linuxisms for FreeBSD
Long term goals:
- Backport to Windows

View file

@ -11,11 +11,24 @@ if [ $(ps auxww | grep gnome-screensaver | wc -l) -gt 0 ]; then
GSC_PID=$!
fi
# Stop unclutter
if [ $(ps auxww | grep unclutter | wc -l) -gt 0 ]; then
echo 'inhibiting unclutter'
killall -STOP unclutter
fi
# run quake 2
# ./quake2 $*
./quake2 $*
# if gnome-screensaver was running..
if [ $GSC_PID -gt 0 ]; then
echo "reactivating gnome screensaver"
kill $GSC_PID
fi
# Continue unclutter
if [ $(ps auxww | grep unclutter | wc -l) -gt 0 ]; then
echo 'reactivating unclutter'
killall -CONT unclutter
fi