summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/login.sh11
-rwxr-xr-x.local/bin/keyring-daemon3
2 files changed, 14 insertions, 0 deletions
diff --git a/.config/login.sh b/.config/login.sh
index 3dad752..1ca3e4c 100644
--- a/.config/login.sh
+++ b/.config/login.sh
@@ -52,6 +52,17 @@ if [[ -f "${XDG_RUNTIME_DIR}/sessions/gpg" ]]; then
export GPG_AGENT_INFO
#export SSH_AUTH_SOCK
fi
+# gnome-keyring/GPG
+#for v in SSH_AUTH_SOCK GPG_AGENT_INFO GNOME_KEYRING_CONTROL GNOME_KEYRING_PID; do
+# eval "echo '$v='\$$v"
+#done
+# if [ -z "$GNOME_KEYRING_CONTROL" ]; then
+# eval `gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg`
+# export SSH_AUTH_SOCK
+# export GPG_AGENT_INFO
+# export GNOME_KEYRING_CONTROL
+# export GNOME_KEYRING_PID
+# fi
# Java
_JAVA_OPTIONS=''
diff --git a/.local/bin/keyring-daemon b/.local/bin/keyring-daemon
new file mode 100755
index 0000000..dbe867e
--- /dev/null
+++ b/.local/bin/keyring-daemon
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+gnome-keyring-daemon --foreground --start --components=pkcs11,secrets,ssh,gpg "$@" > "${HOME}/.keyring-info.cache"