Home GnuPG

gnome3: Fall back to curses if screensaver is locked.
e353f4d1ac31Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gnome3: Fall back to curses if screensaver is locked.

* gnome3/pinentry-gnome3.c (pe_gnome_screen_locked): New Function.
Returns true only if we can talk to a GNOME screensaver over D-Bus and
it assures us that it is locked.
(main): If GNOME screensaver is locked, fall back to curses.

We assume that if pinentry is triggered while the screensaver is
locked, then it is likely being done by some sort of remote connection
(e.g. ssh), and isn't being done directly from the graphical console.
In that case, prompting at the graphical console won't be able to get
the attention of the user, so we should fall back to curses if
possible.

Details

Provenance
dkgAuthored on Nov 6 2016, 8:17 AM
nealCommitted on Nov 7 2016, 1:06 AM
Parents
rP2e17565fd9cb: gnome3: Test if Gcr System Prompter is available at startup.
Branches
Unknown
Tags
Unknown