diff --git a/dotfiles/desktop/.config/service/emacs/run b/dotfiles/desktop/.config/service/emacs/run index 89d48a0..e92a847 100755 --- a/dotfiles/desktop/.config/service/emacs/run +++ b/dotfiles/desktop/.config/service/emacs/run @@ -4,6 +4,8 @@ set -eu export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket" +cd "$HOME" + if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then exec chpst -e "$TURNSTILE_ENV_DIR" emacs --fg-daemon fi