From 87de3c065d2245dc56aa1502c88f5bf8529bcc9d Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 4 Jul 2024 21:01:09 +0200 Subject: [PATCH] aerc: use kwallet on plasma --- config/aerc/scripts/wait-for-creds.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/config/aerc/scripts/wait-for-creds.sh b/config/aerc/scripts/wait-for-creds.sh index 834c67e4..92216354 100755 --- a/config/aerc/scripts/wait-for-creds.sh +++ b/config/aerc/scripts/wait-for-creds.sh @@ -1,14 +1,16 @@ #!/bin/sh -if [ ! "$(pidof keepassxc)" ]; then - echo "KeepassXC not running"; - exit 1 +if [ "$(pgrep kwin)" ]; then + kwallet-query -r "$2" kdewallet +else + # if [ ! "$(pidof keepassxc)" ]; then + # echo "KeepassXC not running"; + # exit 1 + # fi + secret-tool lookup "$1" "$2" + # wait until the password is available + while [ $? != 0 ]; do + secret-tool lookup "$1" "$2" + sleep 5 + done fi - -secret-tool lookup "$1" "$2" -# wait until the password is available -while [ $? != 0 ]; do - secret-tool lookup "$1" "$2" - sleep 5 -done - -- 2.51.2