From: Mark Wooding Date: Sat, 14 May 2011 13:21:36 +0000 (+0100) Subject: Gnome hacking: Introduce a custom session file. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/2e60c7f3384942f96c363ae9cd3cf9fdacb5e852 Gnome hacking: Introduce a custom session file. The morons behind Gnome have decided that everyone must have a window manager, and can't understand that someone might have started one up already. As a result, they flail about trying to start the abortion known as Metacity, which immediately exits because E already has the magic selection. Kill this absurd behaviour. --- diff --git a/dot/mdw.session b/dot/mdw.session new file mode 100644 index 0000000..f301215 --- /dev/null +++ b/dot/mdw.session @@ -0,0 +1,5 @@ +[GNOME Session] +Name=[mdw]'s not crap session +Required=panel; +Required-panel=gnome-panel +DefaultApps=gnome-settings-daemon; diff --git a/dot/xinitrc b/dot/xinitrc index 151b9a4..3141367 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -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 diff --git a/setup b/setup index d1322f5..3df6067 100755 --- a/setup +++ b/setup @@ -151,6 +151,7 @@ dotfiles=" fonts.conf stalonetrayrc putty-defaults:.putty/sessions/Default%20Settings + mdw.session:.config/gnome-session/sessions/mdw.session eterm-theme.cfg:.Eterm/themes/Eterm/theme.cfg e-keybindings.cfg:.enlightenment/keybindings.cfg evnc-keybindings.cfg:.enlightenment-vnc/keybindings.cfg