[gnome-shell/gnome-3-4] gdm: don't fail if fprintd unavailable
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-4] gdm: don't fail if fprintd unavailable
- Date: Mon, 7 May 2012 19:10:16 +0000 (UTC)
commit 2c51d42acfe6d824b09080e5727a1ddc83001d64
Author: Ray Strode <rstrode redhat com>
Date: Fri Apr 27 17:51:18 2012 -0400
gdm: don't fail if fprintd unavailable
fingerprint support is optional so we shouldn't try to start
fprintd upfront and croak if it fails.
https://bugzilla.gnome.org/show_bug.cgi?id=675006
(cherry picked from commit e333263fd646cee7b235e181db7dd96a6bf0735e)
js/gdm/fingerprint.js | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/js/gdm/fingerprint.js b/js/gdm/fingerprint.js
index 9c090b0..13362c2 100644
--- a/js/gdm/fingerprint.js
+++ b/js/gdm/fingerprint.js
@@ -11,10 +11,17 @@ const FprintManagerIface = <interface name='net.reactivated.Fprint.Manager'>
</method>
</interface>;
-const FprintManagerProxy = Gio.DBusProxy.makeProxyWrapper(FprintManagerIface);
+const FprintManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(FprintManagerIface);
function FprintManager() {
- return new FprintManagerProxy(Gio.DBus.system,
- 'net.reactivated.Fprint',
- '/net/reactivated/Fprint/Manager');
-};
+ var self = new Gio.DBusProxy({ g_connection: Gio.DBus.system,
+ g_interface_name: FprintManagerInfo.name,
+ g_interface_info: FprintManagerInfo,
+ g_name: 'net.reactivated.Fprint',
+ g_object_path: '/net/reactivated/Fprint/Manager',
+ g_flags: (Gio.DBusProxyFlags.DO_NOT_AUTO_START |
+ Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
+
+ self.init(null);
+ return self;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]