FS#29199 - [pinentry] defaults to use GTK2

Attached to Project: Arch Linux
Opened by Arcaik (arcaik) - Saturday, 31 March 2012, 07:53 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 09 September 2012, 09:18 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity High
Priority Normal
Reported Version 4.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

I have a bug with GNUPG : it needs GTK to unlock private keys and I don’t have (nor want) GTK.

Steps to Reproduce:
(arcaik) |> ~ <| gpg --decrypt .passwords.gpg

You need a passphrase to unlock the secret key for
user: "Arcaik <BLAH>"
4096-bit RSA key, ID 0659CCA3, created 2010-12-24 (main key ID A1ACE3AD)

pinentry: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
gpg-agent[846]: can't connect to the PIN entry module: End of file
gpg-agent[846]: command get_passphrase failed: No pinentry
gpg: problem with the agent: No pinentry
gpg: encrypted with 4096-bit RSA key, ID 0659CCA3, created 2010-12-24
"Arcaik <BLAH>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 09 September 2012, 09:18 GMT
Reason for closing:  Not a bug
Comment by Rémy Oudompheng (remyoudompheng) - Saturday, 31 March 2012, 08:12 GMT
The workaround is to link pinentry to pinentry-curses or configure the gpg-agent to use the preferred pinentry, or to simply unset DISPLAY. I'm not sure how to handle Debian-style alternatives.

It must have changed recently, last week I was prompted the passphrase directly, not in a ncurses UI nor in a GUI.
Comment by Pierre Schmitz (Pierre) - Saturday, 31 March 2012, 08:27 GMT
Yes, it might make sense to make the non-X version the default if possible.
Comment by Allan McRae (Allan) - Saturday, 31 March 2012, 11:36 GMT
Add "pinentry-program /usr/bin/pinentry-curses" to ~/.gnupg/gpg-agent.conf
Comment by Arcaik (arcaik) - Saturday, 31 March 2012, 12:37 GMT
> Add "pinentry-program /usr/bin/pinentry-curses" to ~/.gnupg/gpg-agent.conf

It won’t work for me, I’m using gpg with vim to open my GPG files.
Comment by Allan McRae (Allan) - Saturday, 31 March 2012, 12:44 GMT
Why would using vim cause gpg to ignore its configuration files...

You probably also need "use-agent" in ~/.gnupg/gpg.conf
Comment by Arcaik (arcaik) - Saturday, 31 March 2012, 13:06 GMT
No no, the only thing is that vim doesn’t show the curses window.
Comment by Allan McRae (Allan) - Saturday, 31 March 2012, 13:09 GMT
So the bug is not that you do not want GTK. It is that you do not want pinentry at all...
Comment by Arcaik (arcaik) - Saturday, 31 March 2012, 13:29 GMT
Sorry, my bug report was done without research ...

I think my problem is, effectively, pinentry although I did not know before posting. I'll wait GNUPG 2.1.
Comment by Daniel Wallace (gtmanfred) - Saturday, 31 March 2012, 21:10 GMT
in the mean time, gnupg1 is in the aur?
Comment by Karol Błażewicz (karol) - Saturday, 31 March 2012, 21:13 GMT
Yes, Xyne has created a package for gnupg1 https://aur.archlinux.org/packages.php?ID=58030

Loading...