-
Notifications
You must be signed in to change notification settings - Fork 8
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
An error when trying to sign a commit: no pinentry #22
Comments
Do you have a gpg-agent instance running om your host system? Originally we did use something similar to evolution but it caused more issues then it solved. |
Yes I guess (Fedora 35 by the way):
|
I'm also on fedora 35 and I get the pinentry prompt. Can you check if you have pinentry. |
Yes
I got the same error on host but it worked when I added Could it be that's because I'm on wayland? UPD: tested it on the rpm package. It worked when I removed |
could you check if gpg-agent is running? |
|
I think I should also say that I actually tried to do this on multiple linux distributions: first on Pop OS, then on Fedora 35, and now I'm on Fedora Silverblue 35 (don't plan to switch for now, hopefully never), and it didn't work anywhere. That could mean that at least my system probably isn't the reason why it doesn't work, because, well, I've installed it several days ago, it's pretty clean. I did nothing with GnuPG, no tweaks. All I did is some changes to the config, and that config is now deleted so it shouldn't affect anything. Also, the flatpaked app starts to sign commits after I first make a signed commit outside, on the host (just checked, but there can be more to that), then it works for all subsequent commits in flatpak too. I guess that's because it doesn't need to ask for a password after I make a commit on host? But when it does need my password, it tries to launch an ncurses pinentry? But everywhere else I get the gnome variant (typical gnome modal window). |
maybe set a pinentry program in gpg-agent.conf? |
Added |
could you try building from commit ff9038d its the last one where we bundled gpg agent and pinentry like org.gnome.Evolution |
Yeah but I can't build it for some reason, any advice on that?
And the outputs are here. I guess it's not just asking for |
Try installing the node extention to system |
Okay, figured it out, it has node16 sdk extension as a dependency but uses node14 later instead. Wait, it's set up like this on master too, how is it working then? Shouldn't it be changed? Back to the topic, sadly no, it doesn't work either. |
A small update |
@geext-dk - If you never got this working, I've found a, admittedly hacky AF workaround... Just edit #!/bin/sh
exec /usr/bin/pinentry-gnome3 "$@" Or whichever pinentry front-end you want to use. Now, if you fixed this properly, please let me know how! |
Has anyone figured out a solution to this? On the host, it asks for my password and when I do, flatpak app works fine since it uses the gpg-agent. But if I restart the agent (so it doesn't have the password cached) my app (intellij) simply fails. |
@tunix - Have you tried my suggestion in the comment above yours? It's not a fix but it's a workaround that seems pretty solid for me |
@hughesjs - where do you do this? on the host? |
Any news on this still having issues on Fedora 37 |
Hello I seem to have fixed this issue by disabling socket=gpg-agent in Flatseal. |
On whatever machine you're installing the flatpak on |
I had the same problem with Evolution and exactly that fixed it for the moment. Thanks for the advice. I assume, that keys from the agent cannot longer be uses that way, but didn't check that, yet. So I would consider that as another workaround but not as the solution for the root course. |
I'm getting the same error promt with kde plasma on arch. [📦 io.github.shiftey.Desktop ~]$ echo test | gpg --clear-sign
gpg: WARNING: server 'keyboxd' is older than us (2.4.2 < 2.4.3)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
gpg: signing failed: No pinentry
gpg: [stdin]: clear-sign failed: No pinentry
Switching |
Hey @Diyou, I just recently switched to KDE Plasma. I once again found myself with the error message. It seems that the flatpak is unable to run pinentry-qt, but installing pinentry-gnome3 fixed it! |
Issue
Not possible to sign commits for now. When I try to make a commit with
gpgSign = true
in my config, I see the following error:But it works if I first make a commit outside flatpak and then do another commit in the Github Desktop application.
Possible cause
If I try to launch this package in cli:
flatpak run --command=sh io.github.shiftey.Desktop
, and typeecho test | gpg --clear-sign
, I get this:As I understand, to support gpg signing this flatpak package should include its own version of
pinentry
, at least for now.You can find some discussion regarding this on other flatpak repos, e. g. flathub/org.gnome.Evolution#12
Additional info
Host OS: Fedora 35
The text was updated successfully, but these errors were encountered: