X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/3f88bd1f7836c3701aa9bb9169a8f86a2d8c270d..9850239276b1911fe285ac625ce8d8d5d9630190:/dot/xinitrc diff --git a/dot/xinitrc b/dot/xinitrc index 1ba8b2c..cf54467 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -109,8 +109,36 @@ case "$wm,$vnc" in ;; esac -start-window-manager () { +start-e16 () { run bginit $wm $wmopts + win=nil + for i in $(seq 10); do + sleep 1 + if eesh version >/dev/null 2>&1; then + win=t + break + fi + done + case $win in + t) + info "$wm started ok" + run init xsetroot -cursor_name left_ptr + ;; + nil) + info "$wm failed to start!" + ;; + esac +} + +start-window-manager () { + case $(type -t start-$wm || echo "not-found") in + function) + start-$wm $wmopts + ;; + *) + run bginit $wm $wmopts + ;; + esac } ###-------------------------------------------------------------------------- @@ -122,6 +150,14 @@ start-clients () { ## Mail notification. run bginit mail-notification + ## Gnome session. With great reluctance. At least it doesn't actually do + ## anything. + run bginit gnome-session + + ## Policykit authentication agent. + agent=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 + if [ -x $agent ]; then run bginit $agent; fi + ## System monitor. case $vnc in no) run bginit gkrellm ;; esac @@ -136,9 +172,6 @@ start-clients () { ## Panel. case $vnc in no) run bginit gnome-panel ;; esac - ## System tray. - ## run bginit stalonetray - ## Local clients. start-clients-local }