dot/xinitrc: Run `gnome-screensaver' by preference.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 1 Apr 2010 08:49:10 +0000 (09:49 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 1 Apr 2010 08:49:10 +0000 (09:49 +0100)
Now that we've got gnome-session running, there's no reason not to any
more.  And it also does the right thing with the keyring system.

dot/xinitrc

index cf54467..3d337a6 100755 (executable)
@@ -146,6 +146,16 @@ start-window-manager () {
 
 start-clients-local () { :; }
 
+scsv=$(pick_program screensaver gnome-screensaver xscreensaver)
+case $scsv in
+  xscreensaver)
+    scsvopts="-no-splash"
+    ;;
+  *)
+    scsvopts=""
+    ;;
+esac
+
 start-clients () {
   ## Mail notification.
   run bginit mail-notification
@@ -165,7 +175,7 @@ start-clients () {
   case $vnc in
     no)
       run init xscreensaver-command -exit
-      run bginit xscreensaver -no-splash
+      run bginit $scsv $scsvopts
       ;;
   esac