[PINENTRY PATCH v2 2/2] pinentry-gnome3: fall back to curses if gcr prompt creation fails

Werner Koch wk at gnupg.org
Tue Oct 4 10:54:21 CEST 2016


On Fri,  9 Sep 2016 10:43, dkg at fifthhorseman.net said:

> In some cases, the user is running in a session that has an active
> D-Bus session, but that session is not attached to a graphical desktop
> environment (e.g. sshing into a machine whose login stack initializes
> a D-Bus session).  In that case, gcr can be reached over dbus, but it
> will complain that it does not know how to prompt the user.

This happens also if you have not a full GNOME installation, which is
the case for me.

The problems I see witch your patch is that the fallback to curses 

 1. could also triggered by other errors

 2. that it may happen during a running pinentry session in case the
    SystemPromper gets removed of installed during the session.  That
    would be pretty suprising.

I would prefer to return a better error message instead of the auto
fallback.  The idea with the auto fallback is that it is used if a user
switches between a plain tty and an Xsession.  But not to resolve
configuration errors.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 162 bytes
Desc: not available
URL: </pipermail/attachments/20161004/a953f799/attachment.sig>


More information about the Gnupg-devel mailing list