You are not logged in.

#1 2022-08-21 23:33:47

ectospasm
Member
Registered: 2015-08-28
Posts: 303

[SOLVED] Problem showing GUI pinentry

SOLVED:  You have to supply a pinentry command on pinentry's stdin.  See the following for a list of available commands:

$ echo HELP | pinentry
$ pinentry <<< HELP

So, this worked:

$ echo GETPIN | pinentry
$ pinentry <<< GETPIN

Wish that was clear reading the info pages/manual, but it's not.

I've tried running GNU pinentry from the terminal, and each invocation appears that I have run pinentry-tty.  No window pops up, I just see the phrase:

OK Pleased to meet you

And it appears to be prompting for input.  I've tried running various GUI and even the ncurses version:

  • pinentry-gtk-2

  • pinentry-qt

  • pinentry-gnome3

  • pinentry-ncurses

All of them give the same behavior, it looks like pinentry-tty is being called.  I've tried running it from my desktop's launcher, and nothing shows up.  I have DISPLAY set to

:0

.  Other Xorg programs launch OK.

I'm trying to see if I can use a GUI pinentry to use as input to a script.  _/usr/bin/pinentry_ is a /bin/sh script, and it tests whether the GTK/GNOME/QT X11 libraries are available, then executes the appropriate command. But all of them look like pinentry-tty.

Last edited by ectospasm (2022-08-24 01:13:30)

Offline

#2 2022-08-22 05:18:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,228

Re: [SOLVED] Problem showing GUI pinentry

Because that is not how pinentry works, try

echo GETPIN | pinentry

Offline

#3 2022-08-24 01:08:12

ectospasm
Member
Registered: 2015-08-28
Posts: 303

Re: [SOLVED] Problem showing GUI pinentry

seth wrote:

Because that is not how pinentry works, try

echo GETPIN | pinentry

Oh, I see, you have to provide a specific command to pinentry.  I had tried the following:

$ echo "blah" | pinentry-gnome3

But that gave this error:

OK Pleased to meet you
ERR 536871187 Unknown IPC command <User defined source 1>

I tried the following, but I didn't understand the clues it gave:

$ pinentry-gnome3 <<< "HELP"

So, when I tried your command verbatim (also the second form below worked):

$ echo GETPIN | pinentry-gnome3
$ pinentry-gnome3 <<< GETPIN

Both of these did what I expect, showed a GUI/GTK3 dialog.  I think this is solved!

Offline

Board footer

Powered by FluxBB