chiark / gitweb /
Gnome hacking: Introduce a custom session file.
[profile] / dot / xinitrc
index 151b9a4b64e97d8da5e93751c76e03e96b793df8..314136784ef3bf8ef5f6b5c0551c82a3700b7540 100755 (executable)
@@ -144,8 +144,18 @@ start-window-manager () {
 start-clients-local () { :; }
 
 start-clients () {
+
   ## Gnome session.
-  case $vnc in no) run bginit gnome-session ;; esac
+  case "$vnc,$(gnome-session --version 2>&1)" in
+    no,gnome-session\ 2.3[2-9].* | \
+    no,gnome-session\ 2.4[0-9].* | \
+    no,gnome-session\ 2.[1-9][0-9][0-9]*)
+      run bginit gnome-session --session mdw
+      ;;
+    no,*)
+      run bginit gnome-session
+      ;;
+  esac
 
   ## Local clients.
   start-clients-local