diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-13 18:32:05 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-13 18:32:05 +0200 |
commit | 7d85a1e6087caab688146a54891c2dd2c468b6f7 (patch) | |
tree | 055e9b546364679eba3397795755eb7672cffb02 /mate-session | |
parent | aca91616f1c9845d860768f0f4d321cfdc515c62 (diff) | |
download | mate-session-manager-7d85a1e6087caab688146a54891c2dd2c468b6f7.tar.bz2 mate-session-manager-7d85a1e6087caab688146a54891c2dd2c468b6f7.tar.xz |
Use synchronous DBus call to switch user in LightDM
Diffstat (limited to 'mate-session')
-rw-r--r-- | mate-session/gsm-manager.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c index 02758f5..d765322 100644 --- a/mate-session/gsm-manager.c +++ b/mate-session/gsm-manager.c @@ -1048,14 +1048,13 @@ manager_switch_user (GsmManager *manager) NULL, &error); if (proxy != NULL) { - g_dbus_proxy_call (proxy, - "SwitchToGreeter", - g_variant_new ("()"), - G_DBUS_CALL_FLAGS_NONE, - -1, - NULL, - NULL, - NULL); + g_dbus_proxy_call_sync (proxy, + "SwitchToGreeter", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, + NULL); g_object_unref (proxy); } else { |