aboutsummaryrefslogtreecommitdiffstats
path: root/pinentry-rofi.sh
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-08-03 11:02:36 +0200
committerMatěj Cepl <mcepl@cepl.eu>2023-08-03 11:02:36 +0200
commite9432fe394e880d6eef93e834217f3e52e8139ab (patch)
treeb34b1925197d5e4e29241f3018e158dfdcab9b6d /pinentry-rofi.sh
parentf23b695734bcb11f0a868652cb0d040f41e64229 (diff)
downloadpinentry-rofi-e9432fe394e880d6eef93e834217f3e52e8139ab.tar.gz
Remove WSL toast notification
Diffstat (limited to 'pinentry-rofi.sh')
-rw-r--r--pinentry-rofi.sh21
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