Author: goneri
Date: 2009-01-11 19:09:06 +0000 (Sun, 11 Jan 2009)
New Revision: 8634

Modified:
   packages/trunk/teeworlds/debian/changelog
   packages/trunk/teeworlds/debian/scripts/teeworlds
Log:
* add a loop in teeworld wrapper to poke the screensaver and avoid freeze
  (Closes: #480902)


Modified: packages/trunk/teeworlds/debian/changelog
===================================================================
--- packages/trunk/teeworlds/debian/changelog   2009-01-11 18:23:30 UTC (rev 
8633)
+++ packages/trunk/teeworlds/debian/changelog   2009-01-11 19:09:06 UTC (rev 
8634)
@@ -1,3 +1,10 @@
+teeworlds (0.4.3-3) experimental; urgency=low
+
+  * add a loop in teeworld wrapper to poke the screensaver and avoid freeze
+    (Closes: #480902)
+
+ -- Gonéri Le Bouder <[email protected]>  Sun, 11 Jan 2009 20:05:45 +0100
+
 teeworlds (0.4.3-2) experimental; urgency=low
 
   [ Gonéri Le Bouder ]

Modified: packages/trunk/teeworlds/debian/scripts/teeworlds
===================================================================
--- packages/trunk/teeworlds/debian/scripts/teeworlds   2009-01-11 18:23:30 UTC 
(rev 8633)
+++ packages/trunk/teeworlds/debian/scripts/teeworlds   2009-01-11 19:09:06 UTC 
(rev 8634)
@@ -37,9 +37,19 @@
 cd ${BASE_PATH}
 
 if [ ${QUIET} -eq 1 ]; then
-       exec ${BINARY} $* >/dev/null 2>&1
+       ${BINARY} $* >/dev/null 2>&1 &
 else
-       exec ${BINARY} $*
+       ${BINARY} $* &
 fi
+TEEWORLDPID=$!
 
+if [ ${QUIET} -ne 1 ]; then
+       echo "starting a loop to prevent screensaver wake up 
(htp://bugs.debian.org/480902)"
+
+        while [ -d "/proc/$TEEWORLDPID" ]; do
+            sleep 10 
+            xscreensaver-command -deactivate >&- 2>&-
+            gnome-screensaver-command --poke >&- 2>&-
+        done
+fi
 exit $?


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to