- ## System monitor.
- case $vnc in no) run bginit gkrellm ;; esac
-
- ## Screensaver.
- case $vnc in
- no)
- run init xscreensaver-command -exit
- run bginit xscreensaver -no-splash
+ ## Gnome session.
+ 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