Skip to content

Commit

Permalink
Leverage .xsessionrc to force our own session
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jul 19, 2015
1 parent a77386b commit 0dc83cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .xsession
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ done
done
} &

for wm in awesome fvwm2 icewm startkde fluxbox enlightenment mwm twm xterm; do
[ -x "`which $wm 2>/dev/null`" ] && exec $sshagent $wm
if [ $# -gt 0 ]; then
exec "$@"
fi

for wm in $wm awesome icewm fluxbox twm xterm; do
type $wm >/dev/null && exec $execpre $wm
done
2 changes: 2 additions & 0 deletions .xsessionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! sh
STARTUP="$HOME/.xsession $STARTUP"
4 changes: 2 additions & 2 deletions bin/tpope-config
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ base_files="\
.muttrc .urlview .mailcap .curlrc \
.gnupg/gpg.conf .ssh/config .ssh/authorized_keys \
.cvsignore .gitconfig .git_template \
.xsession .Xresources .xbindkeys.scm .gtkrc .gtkrc-2.0 .netscape/user.js \
.pixmaps/mini \
.xsession .xsessionrc .Xresources .xbindkeys.scm .gtkrc .gtkrc-2.0 \
.pixmaps/mini .netscape/user.js \
.config/awesome/rc.lua .config/awesome/theme.lua \
bin/x-terminal-emulator bin/sensible-browser bin/tpope \
bin/tpope-config bin/tpope-host bin/tpope-media bin/tpope-setup \
Expand Down

0 comments on commit 0dc83cf

Please sign in to comment.