diff --git a/pinentry-stub.sh b/pinentry-stub.sh new file mode 100755 index 0000000..3694b62 --- /dev/null +++ b/pinentry-stub.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# vim: set sw=4 ts=4 sts=4 et : + +while IFS=' ' read -r cmd args; do + case "${cmd}" in + GETPIN) + printf 'D %s\n' "$(cat "${PINENTRY_PASSWORD_FILE}")" + ;; + SETPROMPT|SETTITLE|SETDESC) + echo OK + ;; + BYE) + exit 0 + ;; + *) + printf 'ERR Unknonw command\n' + ;; + esac +done diff --git a/xactfetch.py b/xactfetch.py index b270fdd..531ee5f 100644 --- a/xactfetch.py +++ b/xactfetch.py @@ -668,11 +668,6 @@ class Chase: def main() -> None: logging.basicConfig(level=logging.DEBUG) - if not rbw_unlocked(): - ntfy( - 'xactfetch needs you to unlock the rbw vault', - tags='closed_lock_with_key', - ) log.debug('Getting Firefly III access token from rbw vault') token = rbw_get('xactfetch') import_secret = secret_from_file(