Skip to content

Instantly share code, notes, and snippets.

@sistematico
Last active October 8, 2015 05:58
Show Gist options
  • Save sistematico/3288807 to your computer and use it in GitHub Desktop.
Save sistematico/3288807 to your computer and use it in GitHub Desktop.
xinitrc
DEFAULT_SESSION=mate-session
ARGS="dbus-launch --exit-with-session ck-launch-session"
# Start a D-Bus session
source /etc/X11/xinit/xinitrc.d/30-dbus
# Start GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
# You probably need to do this too:
export SSH_AUTH_SOCK
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID
case $1 in
mate)
exec $ARGS mate-session
;;
openbox)
exec $ARGS openbox-session
;;
xfce)
exec $ARGS startxfce4
;;
*)
exec $ARGS $DEFAULT_SESSION
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment