Mailinglist Archive: opensuse (1523 mails)

< Previous Next >
Re: [opensuse] Pinentry problem
  • From: Anton Aylward <anton.aylward@xxxxxxxxxx>
  • Date: Thu, 18 Mar 2010 08:34:39 -0400
  • Message-id: <4BA21DDF.5030908@xxxxxxxxxx>
Petr Uzel said the following on 03/18/2010 05:54 AM:


Yes, that's expected. Most likely I wasn't clear before. You are
right that in such case it is pinentry-gtk-2, what is 'selected' by
/usr/bin/pinentry script. But since it figures out there is no
$DISPLAY, it runs pinentry-curses-like interface which is embedded
into pinentry-gtk-2 binary (as well as to other graphical pinentry's).

If that's the case then the if/elsif tree is pointless.
First, because it will never get to pinentry-curses and secondly if the
-curses code is embedded in the GUI versions, why bother having a -cures
version anyway.

There's something here that's either pretty dumb or doesn't make sense.


You can verify this by doing the following at tty2:

gpg --sign some_file -> pinentry-curses dialog appears, don't close it
switch to another console and issue
ps aux | grep pinentry -> it shows it is actually pinentry-gtk-2,
which does the curses-like interface.

Done. It is so :-)





So if -gtk-2 or -qt4 or -qt exist they well be used
EVEN IF KDE IS NOT DETECTED.

And what would you suggest to use instead?

As I said, it the -curses version in embedded then any of them will do
and the test and if/elseif tree are pointless.


I think this is WRONG !

Pinentry-curses is used as a fallback only if there is no graphical
pinentry installed. That's intentional. Since every graphical
pinentry provides also embedded pinentry-curses interface,
this is fine IMHO.

So why have all those packages?



The test for KDE only happens if DISPLAY is set.

If DISPLAY is not set, why should we care about KDE/GNOME? It
even does not make sense. Or am I missing something?

So what about other window managers?
Sorry, I don't get this question.

I phrased that badly.

If DISPLAY is set then there is _some_ windows manager running.
How to choose between the one for Gnome and the one for KDE?
Or something else.?

Oh, right. Gtk-2 is enough.
Which gets back to my original question, why have more than one if Gtk-2
can work for KDE (It does I just tested it) and has the -curses code in it.

Why have the shell script? Why have -qt and -qt4 when just one package
will do the job?



--
'Faith' means not _wanting_ to know what is true.
-- Nietzsche, Der Antichrist
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups