mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Update the start script
This commit is contained in:
parent
c50f610cb2
commit
6be8120804
2 changed files with 14 additions and 4 deletions
3
TODO
3
TODO
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue