Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/helpers/run-with-keyring
diff options
context:
space:
mode:
Diffstat (limited to 'commands/helpers/run-with-keyring')
-rwxr-xr-xcommands/helpers/run-with-keyring12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/helpers/run-with-keyring b/commands/helpers/run-with-keyring
new file mode 100755
index 0000000..2925d2f
--- /dev/null
+++ b/commands/helpers/run-with-keyring
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+eval `gnome-keyring-daemon --start --components=secrets,pkcs11,ssh,gpg`
+
+export SSH_AUTH_SOCK
+export GNOME_KEYRING_CONTROL
+export GPG_AGENT_INFO
+export GNOME_KEYRING_PID
+
+exec $1
+
+kill $GNOME_KEYRING_PID