gdm/utils: Pass cancellable to the FPrint Device proxy and avoid signals

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
This commit is contained in:
Marco Trevisan (Treviño) 2022-04-12 17:20:58 +02:00
parent 885f1391ab
commit ce03df5761

View File

@ -410,8 +410,8 @@ export class ShellUserVerifier extends Signals.EventEmitter {
const args = cancellable ? [cancellable] : [];
const [devicePath] = await fprintManager.GetDefaultDeviceAsync(...args);
const fprintDeviceProxy = new FprintDeviceProxy(Gio.DBus.system,
'net.reactivated.Fprint',
devicePath);
'net.reactivated.Fprint', devicePath, null, cancellable,
Gio.DBusProxyFlags.NOT_CONNECT_SIGNALS);
this._setFingerprintReaderType(fprintDeviceProxy['scan-type']);
this._updateDefaultService();