Issueing gnome-screensaver disabling differently depending on wheezy or squeeze.
authorDaniel Baumann <daniel@debian.org>
Wed, 3 Apr 2013 15:52:26 +0000 (17:52 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 3 Apr 2013 15:52:26 +0000 (17:52 +0200)
scripts/config/1040-gnome-screensaver

index 78eef98..b5dfff9 100755 (executable)
@@ -35,8 +35,14 @@ Gnome_screensaver ()
 Configure_gnome_screensaver ()
 {
        # Disabling to lock the screen when the screensaver goes active.
-       sudo -u "${LIVE_USERNAME}" gconftool-2 -t bool -s /apps/gnome-screensaver/lock_enabled false
-       sudo -u "${LIVE_USERNAME}" gsettings set org.gnome.desktop.screensaver lock-enabled false
+       if [ -e /run ]
+       then
+               # wheezy
+               sudo -u "${LIVE_USERNAME}" gsettings set org.gnome.desktop.screensaver lock-enabled false
+       else
+               # squeeze
+               sudo -u "${LIVE_USERNAME}" gconftool-2 -t bool -s /apps/gnome-screensaver/lock_enabled false
+       fi
 
        # Creating state file
        touch /var/lib/live/config/gnome-screensaver