From fdb7fec9aacedfbe2020ce541192cae1d1926e83 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 12 Feb 2024 19:16:03 +0100 Subject: [PATCH] Generalise shell/gpg --- shell/gpg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/gpg b/shell/gpg index feec9b5..a4bc470 100755 --- a/shell/gpg +++ b/shell/gpg @@ -2,9 +2,9 @@ #export GPG_TTY #gpg-connect-agent updatestartuptty /bye >/dev/null -if ps -u lloeki | grep -v grep | grep -q gpg-agent; then +if ps -u "${USER}" | grep -v grep | grep -q gpg-agent; then : -elif type pinentry-rofi /dev/null 2>&1; then +elif type pinentry-rofi >/dev/null 2>&1; then gpg-agent --homedir /home/lloeki/.gnupg --use-standard-socket --daemon --pinentry-program=/etc/profiles/per-user/lloeki/bin/pinentry-rofi fi # vim: ft=bash