river: Fix pass-pick invocation
Running pass-pick (or other gpg requiring software) through river was not correctly accessing the gpg agent since being managed by runit user service did not point them to the correct gpg agent socket. This commit fixes it using keychain as auxiliary software to manage a session-long gpg agent process which is also exported into the turnstile environment so other runit services can make use of it.
This commit is contained in:
parent
07a619060a
commit
554e13cd36
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,12 @@
|
|||
if [ -d "$TURNSTILE_ENV_DIR" ]; then
|
||||
echo "$DISPLAY" >"$TURNSTILE_ENV_DIR/DISPLAY"
|
||||
echo "$WAYLAND_DISPLAY" >"$TURNSTILE_ENV_DIR/WAYLAND_DISPLAY"
|
||||
echo "ADDING KEYCHAIN TO ENV"
|
||||
keychain --eval --quiet --agents ssh,gpg C414FF88A557F29AFEF76C7E73BA40D5AFAF49C9
|
||||
echo "$SSH_AUTH_SOCK">"$TURNSTILE_ENV_DIR/SSH_AUTH_SOCK"
|
||||
echo "$SSH_AGENT_PID">"$TURNSTILE_ENV_DIR/SSH_AGENT_PID"
|
||||
echo "$GPG_AGENT_INFO">"$TURNSTILE_ENV_DIR/GPG_AGENT_INFO"
|
||||
echo "DONE ADDING KEYCHAIN TO ENV"
|
||||
fi
|
||||
|
||||
mod="Mod4"
|
||||
|
|
Loading…
Reference in a new issue