diff options
author | Ted Gould <ted@gould.cx> | 2010-03-16 19:58:54 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-16 19:58:54 -0500 |
commit | 94cd451d64dec28a5649038b3de1c5971f8f6137 (patch) | |
tree | 18bda1776ee672eff4bf245891bab05439645759 /src/session-service.c | |
parent | c5032805fc4e2ad6c95ddbab3ddbfb76762a312e (diff) | |
download | ayatana-indicator-session-94cd451d64dec28a5649038b3de1c5971f8f6137.tar.gz ayatana-indicator-session-94cd451d64dec28a5649038b3de1c5971f8f6137.tar.bz2 ayatana-indicator-session-94cd451d64dec28a5649038b3de1c5971f8f6137.zip |
Adding a way to activate the guest session through GDM
Diffstat (limited to 'src/session-service.c')
-rw-r--r-- | src/session-service.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c index fb20f3b..cb36e9c 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -386,6 +386,13 @@ activate_guest_session (DbusmenuMenuitem * mi, guint timestamp, gpointer user_da lock_if_possible(); + if (dbusmenu_menuitem_property_get_bool(mi, USER_ITEM_PROP_LOGGED_IN)) { + if (users_service_dbus_activate_guest_session(USERS_SERVICE_DBUS(user_data))) { + return; + } + g_warning("Unable to activate guest session, falling back to command line activation."); + } + if (!g_spawn_command_line_async(GUEST_SESSION_LAUNCHER, &error)) { g_warning("Unable to start guest session: %s", error->message); g_error_free(error); |