aboutsummaryrefslogtreecommitdiff
path: root/config/all/zsh/60-graphical-session.zsh
blob: 3d4b53ab045b64ee8f05f9ceb7da59bf0493e2fe (plain)
1
2
3
4
5
6
7
8
if [ -n "$XDG_SESSION_DESKTOP" ] && command -v gnome-keyring-daemon > /dev/null; then
    # load the keyring daemon into the environment if:
    #   - we're in a graphical session
    #   - the daemon is installed
    # starts the daemon if it hasn't been started already,
    # otherwise just exports the auth socket of the existing daemon
    export $(gnome-keyring-daemon --start 2> /dev/null)
fi