Last active
October 8, 2015 05:58
-
-
Save sistematico/3288807 to your computer and use it in GitHub Desktop.
xinitrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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