[PINENTRY PATCH v2] gnome3: Test if Gcr System Prompter is available at startup.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Nov 3 18:08:23 CET 2016
Control: tags 842015 + patch
On Thu 2016-11-03 12:31:40 -0400, Daniel Kahn Gillmor wrote:
> +/* test whether we can create a system prompt or not. This briefly
> + does create a system prompt, which blocks other tools from making
> + the same concurrent request, so we just create it to test if it is
> + available, and quickly close it.
> +*/
> +int gcr_system_prompt_available ()
Just to be clear here -- this doesn't actually open any windows or
display anything. It simply asks the gcr to reserve the right to make a
system prompt:
https://developer.gnome.org/gcr/stable/GcrSystemPrompt.html#gcr-system-prompt-open
It should fail properly if:
* there is nothing providing the gcr service on the current d-bus
session, or
* there is something which provides gcr, but it knows it is unable to
make a system prompt.
let me know if you have any questions,
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 930 bytes
Desc: not available
URL: </pipermail/attachments/20161103/39813d03/attachment-0001.sig>
More information about the Gnupg-devel
mailing list