diff --git a/src/bwpass.py b/src/bwpass.py index 01adfcf..fbc922c 100644 --- a/src/bwpass.py +++ b/src/bwpass.py @@ -65,8 +65,9 @@ class Pinentry: def getpin(self): codec = locale.getpreferredencoding() + tty = os.ttyname(sys.stdin.fileno()) p = subprocess.Popen( - ['pinentry'], + ['pinentry', '-T', tty], stdin=subprocess.PIPE, stdout=subprocess.PIPE, )