From f51aae7bc2653dab1eb17fd05d6a087ff8e35039 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 17 May 2023 10:54:37 +0200 Subject: [PATCH] Attach to authentication splits now works --- rofi-pass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rofi-pass b/rofi-pass index 2c5c25a..2dcb0b6 100755 --- a/rofi-pass +++ b/rofi-pass @@ -27,7 +27,7 @@ TIME=1 if [ "${gpg_agent_info}" -eq 0 ]; then ## Start a terminal emulator ## Create new tmux splits to ask for gpg passphrase - "${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION && tmux attach-session' & + "${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION' & # Minimum time to enter my passphrases sleep 5 @@ -63,8 +63,10 @@ if [ "${gpg_agent_info}" -eq 0 ]; then fi # If gpg-agent already have a key in cache {{{ -else +elif [ "${gpg_agent_info}" -gt 0 ]; then # Then, call real rofi-pass "${HOME}"/repos/rofi-pass/rofi-pass +else # Not supposed to happen + exit 2 fi # }}}