diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-10-22 10:00:39 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-10-22 10:00:50 +0200 |
commit | 75c684b7b72acd5cda7841facaf459e4acfeb659 (patch) | |
tree | ed84ac906fb2fbbd9a10aedbbc058e390b1287c6 /plugins/smartcard | |
parent | db2312a3975cd2878ef7c6c7ab4a1651dfbfcdcb (diff) | |
download | gnome-settings-daemon-75c684b7b72acd5cda7841facaf459e4acfeb659.tar.gz |
smartcard: Use new SessionManager singleton
https://bugzilla.gnome.org/show_bug.cgi?id=686556
Diffstat (limited to 'plugins/smartcard')
-rw-r--r-- | plugins/smartcard/gsd-smartcard-plugin.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/smartcard/gsd-smartcard-plugin.c b/plugins/smartcard/gsd-smartcard-plugin.c index 928ec289..df1a8c8e 100644 --- a/plugins/smartcard/gsd-smartcard-plugin.c +++ b/plugins/smartcard/gsd-smartcard-plugin.c @@ -28,6 +28,7 @@ #include <gio/gio.h> #include "gnome-settings-plugin.h" +#include "gnome-settings-session.h" #include "gsd-smartcard-plugin.h" #include "gsd-smartcard-manager.h" @@ -49,9 +50,6 @@ typedef enum #define SCREENSAVER_DBUS_PATH "/" #define SCREENSAVER_DBUS_INTERFACE "org.gnome.ScreenSaver" -#define SM_DBUS_NAME "org.gnome.SessionManager" -#define SM_DBUS_PATH "/org/gnome/SessionManager" -#define SM_DBUS_INTERFACE "org.gnome.SessionManager" #define SM_LOGOUT_MODE_FORCE 2 #define KEY_REMOVE_ACTION "removal-action" @@ -110,12 +108,7 @@ force_logout (GsdSmartcardPlugin *plugin) GVariant *res; g_debug ("GsdSmartcardPlugin telling session manager to force logout"); - sm_proxy = g_dbus_proxy_new_sync (plugin->priv->bus_connection, - 0, NULL, - SM_DBUS_NAME, - SM_DBUS_PATH, - SM_DBUS_INTERFACE, - NULL, NULL); + sm_proxy = gnome_settings_session_get_session_proxy (); error = NULL; res = g_dbus_proxy_call_sync (sm_proxy, |