[pkg-gnupg-maint] Bug#869416: Bug#869416: pinentry-gtk2: fails to request passphrase when importing OpenPGP secret key with Seahorse

intrigeri intrigeri at debian.org
Sun Jul 30 18:23:36 UTC 2017


Hi!

Thanks for your fast answer! My replies are inline below.

NIIBE Yutaka:
> intrigeri at debian.org writes:
>>   gpg-agent[11835]: DBG: error calling pinentry: Inappropriate ioctl for device <Pinentry>

> This error message is related to DISPLAY or GPG_TTY.

> I guess that pinentry is invoked with no DISPLAY and no GPG_TTY.  It
> failed to open window, and then, it failed at isatty (3), then return
> ENOTTY (its error string: "Inappropriate ioctl for device").

OK, this makes sense :)

>>  * This problem doesn't happen when using pinentry-gnome3.
>>    The difference I see in gpg-agent's debug log is that when using
>>    pinentry-gnome3, I see a number of OPTION commands sent to
>>    gpg-agent, e.g. OPTION display=:1, while I see no such thing when
>>    using pinentry-gtk-2. I'm not sure who's responsible for sending
>>    these options.

> When DISPLAY is there for gpgme, gpgme sends "OPTION display=:1" to
> gpg-agent.

> Does Seahorse have DISPLAY env var?

Apparently yes:

  $ tr '\0' '\n' <  /proc/$(pgrep seahorse)/environ | grep -E '^(GPG|DISPLAY)'
  DISPLAY=:1
  GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1

Anything else I should try? Something about $GPG_TTY, or starting
Seahorse from GNOME Terminal (instead of the GNOME Overview), perhaps?

Cheers,
-- 
intrigeri



More information about the pkg-gnupg-maint mailing list