-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pinentry-tty does not work #181
Comments
I think it's unlikely that's an issue with Can you try the following:
|
If I set the environment variable GPG_TTY=$(tty), as recommended at issue 90, then I am asked for the pin like the screenshot above. I think, that point should be added to the documentation. |
Glad you got it working. I think we may actually be able to set |
I cooked something up here: https://github.com/d-e-s-o/nitrocli/tree/topic/gpg-tty Feel free to give it a try when you get a chance. |
I copied the branch to my computer and created the executable as described I am not sure if it makes sense to include the setting of the environment variable GPG_TTY in the code. I think this should be left up to the user, because it isn't a problem for nitrocli. |
Grrrrr...there actually was a bug in there. Sorry. Should be fixed now in the same branch.
Okay. What are the arguments against setting this variable programmatically? I agree that The only downside I see is increased implementation complexity. That's fair (and a realistic concern given the bug we just saw [though I am going to fall back to blaming braindead POSIX C APIs that don't adhere to basic tenets of the language they are written in and designed for {strings are NUL terminated}, accompanied by inapt documentation ;-)]), but I believe that it does not trump user experience. I am -- to put it frankly -- annoyed by stupid errors a la "Inappropriate ioctl for device" (not when using |
I’m a bit cautious about setting GPG_TTY in nitrocli because I haven’t
found a proper documentation of the GPG_TTY environment variable and its
implications, but I agree it’s probably still the best solution. But I
think we should avoid trying to be smarter than the user. If I’m not
mistaken, the current implementation does not check whether GPG_TTY is
already set. If it is set, we shouldn’t mess with it.
|
To include the point in the documentation, this was just a suggestion from me and nothing more. I agree with you that reading documentation is not the primary focus of the user. |
Yeah, agreed. I was planning to do that, but then I got sidetracked and that fell off :P In any event, this is not a fully blown pull request yet. I was merely hoping for acknowledgement that it solves the issue at hand. We will also have to dig more into implications for extension support. I've taken a note, though, to address it next time I touch the code. |
I think it's well explained here:
(gets me back to the above but I'll stop ranting now; I am sure I am just missing technical intricacies :-)) |
By any chance, have you had a chance to test with the most recent version of the |
I managed to reproduce the problem and verified that the fix is indeed working. I will polish it some and should have it out for review soon.
|
Under arch linux I am trying to get nitrocli to run in a command line environment. If I call nitrocli like this: DISPLAY="" nitrocli encrypted open I get the error message.
Failed to parse pinentry secret: 83918950 Inappropriate ioctl for device
The text was updated successfully, but these errors were encountered: