diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-16 12:47:10 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-16 12:55:37 (GMT) |
commit | 06017e015e8e041c18dfb34ac2eabe8cc91b60e9 (patch) | |
tree | 73f6aa49f740e6d80d0de12c675427dfaaae5964 /scripts/run-with-keyring | |
parent | b06bae71170fb9989e4171344234aaaf33dfc900 (diff) |
Setup gnome keyring
I'm not sure if sugar should do this but it's certainly handy for
development and dogfooding. Most importantly it avoids leaking
keyring daemons and breaking the buildbot.
Diffstat (limited to 'scripts/run-with-keyring')
-rwxr-xr-x | scripts/run-with-keyring | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/run-with-keyring b/scripts/run-with-keyring new file mode 100755 index 0000000..2925d2f --- /dev/null +++ b/scripts/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 |