default keys in gpa

Bernhard Herzog bh@intevation.de
18 Jan 2001 12:27:28 +0100


Peter Gerwinski <peter@gerwinski.de> writes:


> Bernhard Herzog wrote:
> > Now, I'd like to be able to find out which key gpg would have used by
> > default, so the default key has a useful initial value. A simple first
> > approximation would seem to be the key returned by
> > gpapa_get_secret_key_by_index for index 0 if there is at least one
> > secret key. Is that a safe assumption?
>
> No.
Well, the code I checked in yesterday uses that method. It's certainly better than having the user explicitly set the default key every time. For the simplified UI in particular it's probably not much of a problem if GPA's default key is not the same as gpg's since most users have only one key anyway.
> > Is there perhaps another way to
> > get gpg's default key through gpapa?
>
> I don't know any. One can parse the `options' file ... :-/
Is there a wishlist or todolist where such things can be added? Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/