esac
done
+###--------------------------------------------------------------------------
+### Preliminary hook.
+
+if [ -r $HOME/.xinitrc-prehook ]; then
+ . $HOME/.xinitrc-prehook
+fi
+
###--------------------------------------------------------------------------
### Iniitial settings.
###--------------------------------------------------------------------------
### Start a window manager.
-wm=$(pick_program window-manager enlightenment e16 twm)
+wm=$(pick_program window-manager e16 compiz enlightenment e17 twm)
wmopts=""
case "$wm,$vnc" in
enlightenment,yes | e16,yes)
done
}
+###--------------------------------------------------------------------------
+### Gnome session care and feeding.
+
+session-running-p () {
+ dbus-send --session --print-reply --dest=org.freedesktop.DBus / \
+ org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager \
+ >/dev/null 2>&1
+}
+
+kill-gnome-session () {
+ if session-running-p; then
+ info "killing Gnome session manager"
+ dbus-send --session \
+ --dest=org.gnome.SessionManager /org/gnome/SessionManager \
+ org.gnome.SessionManager.Logout uint32:2
+ for i in 1 2 3 4 5; do
+ sleep 1
+ if ! session-running-p; then break; fi
+ done
+ fi
+}
+
###--------------------------------------------------------------------------
### Actually start things up.
case "$wait" in
yes)
xwait
+ kill-gnome-session
;;
no)
info "not waiting before exit"
email = mdw@distorted.org.uk
mailbox = ~/Mailbox
rootly = become -g0 root
-http-proxy = metalzone.distorted.org.uk:3128
-nntp-server = metalzone.distorted.org.uk
+http-proxy = www-cache.distorted.org.uk:3128
+nntp-server = www-cache.distorted.org.uk
cvs-root = metalzone.distorted.org.uk:/home/cvs/cvs
svn-root = svn+ssh://metalzone.distorted.org.uk/home/cvs/svn
-cltl-url = http://metalzone.distorted.org.uk/doc/cltl/
-hyperspec-url = http://metalzone.distorted.org.uk/doc/hyperspec/
+cltl-url = http://www.distorted.org.uk/doc/cltl/
+hyperspec-url = http://www.distorted.org.uk/doc/hyperspec/
console-ctype = en_GB.iso885915
x-ctype = en_GB.utf8
sub=
mkdir -p $HOME$sub
-: ${REPO=http://ftp.distorted.org.uk/ftp/pub/mdw/profile}
+: ${REPO=http://ftp.distorted.org.uk/pub/mdw/profile}
export PATH=/usr/local/bin:$HOME$sub/bin:/usr/bin:/usr/ccs/bin:/bin
mdw-build
emacsclient-hack
movemail-hack
+ sendmail-hack
aspell-hack
emerge-hack
lesspipe.sh