services: Fix missing environment variables for user services
We add an additional 'core' user service (i.e. one that gets loaded before all others by turnstile) which populates the TURNSTILE_ENV_DIR with all manner of custom set env vars that are important for other applications. Most importantly, this sets up the XDG directory compliance for applications either managed by turnstile or applications started through turnstile on my system. So, for example `pass` knows to search for its database in `XDG_DATA_HOME` and river knows to search for binaries in a PATH which has been prefixed with my custom user binary location.
This commit is contained in:
parent
5f6627e7e7
commit
2e9701ea26
6 changed files with 36 additions and 12 deletions
|
|
@ -4,12 +4,6 @@
|
|||
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…
Add table
Add a link
Reference in a new issue