-
Notifications
You must be signed in to change notification settings - Fork 3
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
No pinentry #56
Comments
This is not enough information to help you here. |
did you have gpg-agent running as instructions? |
I'm afraid there's nothing I can add that's genuinely useful. I've even tried using Issue still as in title. :) Is there any information you suggest I provide? |
Do you have gpg-agent socket in It was confirmed to work in flatpak and in kleopatra specifically https://blog.grdryn.me/blog/flatpak-emacs-with-gpg-agent.html |
Yep, daemon's running just fine. It looks like it only works with I've just got it working by installing that and starting the daemon with: |
I'm also running into this issue; using EDIT: Apparently, using |
Does it work when agent is running before klepatra? |
Yes, but only with the pinentry option mentioned above. |
If the agent isn't running before Kleopatra then there are no certificates to encrypt or decrypt anything with; pinentry isn't really relevant. Things have changed for me after the recent Flatpak update and I've done some brief experimenting with different pinentry options, starting Kleopatra using OS: openSUSE Tumbleweed with SwayWM Kleopatra details: Error messages below are as shown in the 'Diagnostics' popup, eg:
No additional information was shown in the terminal output from
|
It took me about 2 hours to figure out how to change the pinentry program kleopatra uses. For other users having this issue, the command Shoutout to https://unix.stackexchange.com/a/447045 EDIT: pinentry-curses doesn't seem to work "Inappropriate ioctl for device" EDIT 2: pinentry-qt works for me. If it doesn't work, install all pinentries using |
I noticed this some months ago, but it wasn't until now that I decided to look further into the matter. I had already configured gpg-agent to be started on system startup: Checking the logs, I found the following:
So I decided to manually run pinentry-qt (typing GETPIN) and look up for problems in my host setup, but it ran successfully. After replacing the pinentry program in gpg-agent with a custom one (so as I could inspect the env. vars.), I finally discovered what was wrong: When pinentry is called, the env. vars. are the ones from the Flatpak environment, and since gpg-agent is being run outside the Flatpak container, pinentry-qt cannot be launched (obviously, As a workaround, I created a wrapper that sets This started happening on Flatpak 1.15.6, mainly due to:
Previous behaviour was: But now: I have not investigated further, but from what I've seen so far, if some random env. vars. and Technically, it will also work if the wrapper is modified to call Wrapperpinentry-wrapper.sh: #!/usr/bin/sh
env WAYLAND_DISPLAY=wayland-0 pinentry-qt "$@" TL;DRWith Flatpak 1.15.6 (or higher), Kleopatra invokes pinentry-qt with the environment variable |
Please report it as regression in https://github.com/flatpak/flatpak/issues |
Issue as in title.
The text was updated successfully, but these errors were encountered: