FS#58979 - [pinentry] Need configurable script for non-GTK2 graphical environments (e.g., Gnome3/Wayland)
Attached to Project:
Arch Linux
Opened by Olivier Mehani (shtrom) - Tuesday, 12 June 2018, 10:35 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 16 June 2018, 05:37 GMT
Opened by Olivier Mehani (shtrom) - Tuesday, 12 June 2018, 10:35 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 16 June 2018, 05:37 GMT
|
Details
Description:
Pinentry currently ships with a simple dispatcher that uses pinentry-gtk-2 if the needed libraries are present, or defaults to the curses version otherwise. The package however ships with a few other pinentry flavours, that cannot be used without hacking the `/usr/bin/pinentry` script. It would be good for that script to be configurable, say, based on a config file in `/etc`. I know that this can be overriden with the `pinentry-program` directive in each user's `.gnupg/gpg-agent.conf`, but I need a system-wide solution (using pinentry-gnome3 by default). Additional info: * pinentry-1.1.0-3 Steps to reproduce: * Install pinentry without the xorg/gtk2 libs, but with gcr * Start a Gnome3/Wayland sessions * configure GPG and the agent, without `pinentry-program` set * `gpg -s` in a terminal * will bring up pinentry-tty * was expected to bring up pinentry-gnome3 |
This task depends upon
Closed by Gaetan Bisson (vesath)
Saturday, 16 June 2018, 05:37 GMT
Reason for closing: Implemented
Additional comments about closing: pinentry-1.1.0-4 in [testing]
Saturday, 16 June 2018, 05:37 GMT
Reason for closing: Implemented
Additional comments about closing: pinentry-1.1.0-4 in [testing]
FS#58368.A very simple solution to your problem would be to add /usr/bin/pinentry to the package's backup array; this way everybody is free to modify this script however they want without having changes overwritten on upgrade. Would that be satisfying to you?
However, maybe it would be cleaner to just add something like a `/etc/default/pinentry` configuration file (and in the `backup` array), that would just state which pinentry to use, and have the script itself source that config file.