aboutsummaryrefslogtreecommitdiff
path: root/config/all/zsh/60-graphical-session.zsh
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2024-02-16 10:01:41 -0600
committerMatt Singleton <matt@xcolour.net>2024-02-16 10:01:41 -0600
commit3d085aa870a164b69ba7ee1e897d47810972539d (patch)
tree218f2c2e5612b1180b3f5672b837e8f08c3c1189 /config/all/zsh/60-graphical-session.zsh
parentf68b645ff061c7e1dc7e23b3fa67a4c55245963b (diff)
new zsh config file for graphical session stuff
Diffstat (limited to 'config/all/zsh/60-graphical-session.zsh')
-rw-r--r--config/all/zsh/60-graphical-session.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/all/zsh/60-graphical-session.zsh b/config/all/zsh/60-graphical-session.zsh
new file mode 100644
index 0000000..3d4b53a
--- /dev/null
+++ b/config/all/zsh/60-graphical-session.zsh
@@ -0,0 +1,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