diff options
Diffstat (limited to 'pinentry-rofi.sh')
-rw-r--r-- | pinentry-rofi.sh | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/pinentry-rofi.sh b/pinentry-rofi.sh index 2f0e447..4ca14d0 100644 --- a/pinentry-rofi.sh +++ b/pinentry-rofi.sh @@ -19,20 +19,12 @@ # pinentry-program /mnt/c/repos/pinentry-wsl-ps1/pinentry-wsl-ps1.sh # b) Set the path to this script when you launch gpg-agent # gpg-agent --pinentry-program /mnt/c/repos/pinentry-wsl-ps1/pinentry-wsl-ps1.sh -# 3. Optionally enable persistence of passwords. -# Requires https://github.com/davotronic5000/PowerShell_Credential_Manager -# Please follow instructions there to install from the Gallery or GitHub. -# Note security perspectives like https://security.stackexchange.com/questions/119765/how-secure-is-the-windows-credential-manager -# Possible values for PERSISTENCE are: "", "Session", "LocalMachine", or "Enterprise" -# 4. Optionally disable toast notification of password retrieval from Credential Manager. -# By default, this code notifies you with a toast notification every time gpg-agent -# retrieves a password from the Windows Credential Manager. Gpg-agent caches passwords -# by default (see gpg-agent settings like max-cache-ttl) so you may not see the notification -# with every usage. -# * Disable: edit the script, near the top, set NOTIFY to the value "0" -# * Enable: edit the script, near the top, set NOTIFY to the value "1" +# WSL-only 3. Optionally enable persistence of passwords. +# WSL-only Requires https://github.com/davotronic5000/PowerShell_Credential_Manager +# WSL-only Please follow instructions there to install from the Gallery or GitHub. +# WSL-only Note security perspectives like https://security.stackexchange.com/questions/119765/how-secure-is-the-windows-credential-manager +# WSL-only Possible values for PERSISTENCE are: "", "Session", "LocalMachine", or "Enterprise" PERSISTENCE="" -NOTIFY="1" DEBUGLOG="" # Do not casually edit the below values @@ -155,9 +147,6 @@ DLM credpassword="$(powershell.exe -nologo -noprofile -noninteractive -command "$cmd_lookup")" if [ -n "$credpassword" ]; then echo -e "S PASSWORD_FROM_CACHE\nD $credpassword\nOK" - if [ "$NOTIFY" == "1" ]; then - powershell.exe -nologo -noprofile -noninteractive -command "$cmd_toast" > /dev/null - fi return fi fi |