gnome-shell/js
Marco Trevisan (Treviño) 885f1391ab gdm/util: Only start fingerprint service synchronously when it's default
On ShellUserVerifier construction we used to start fprintd in a sync
fashion all the times, however in case the daemon had startup failures
or was hanging for whatever reason (like due to devices probing, given
that fprintd synchronously wait for them all to be initialized) we used
to just fail, leaving gdm or the lockscreen in a not usable state.

While this could be prevented with a try/catch statement, there's no
much point to wait for fprintd if that's not the default authentication
service, and so:
 - If we use gdm-fingerprint as default auth method, use a sync call to
   initialize it and in case of failures, just continue with fallback
   authentication mechanism (password)

 - Otherwise, asynchronously initialize fprintd and continue with the
   ShellUserVerifier without fingerprint support until we got a reply.
   In case the service fails to deliver us a result, we don't give up
   but we will try doing that at each authentication via
   _checkForFingerprintReader().
   In case all works properly, as per the previous commit, once the
   initialization is done, we'll start the fingerprint PAM gdm service.

Fixes #5168

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
2024-02-28 22:12:02 +01:00
..
dbusServices FdoNotificationDaemon: Emit ActivationToken before ActionInvoked signal 2024-02-28 13:51:18 +00:00
extensions extensions: Fix ngettext convenience 2023-09-15 21:41:30 +00:00
gdm gdm/util: Only start fingerprint service synchronously when it's default 2024-02-28 22:12:02 +01:00
misc cleanup: Use spread properties instead of Object.assign() 2024-02-17 11:53:43 +01:00
portalHelper js: Port Config to ESM 2023-08-10 17:42:23 +00:00
ui windowMenu: Pass missing argument when starting grab op 2024-02-28 16:00:11 +00:00
js-resources.gresource.xml dbusErrors: Add utility module for handling remote errors 2024-01-31 20:58:31 +01:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js/portal-resources: Add missing fileUtils to js path 2022-11-03 18:02:27 +00:00