ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #03424
[Merge] lp:~gunnarhj/indicator-session/bug-636693 into lp:indicator-session
Gunnar Hjalmarsson has proposed merging lp:~gunnarhj/indicator-session/bug-636693 into lp:indicator-session.
Requested reviews:
Ted Gould (ted)
For more details, see:
https://code.launchpad.net/~gunnarhj/indicator-session/bug-636693/+merge/53485
--
https://code.launchpad.net/~gunnarhj/indicator-session/bug-636693/+merge/53485
Your team ayatana-commits is subscribed to branch lp:indicator-session.
=== modified file 'src/session-service.c'
--- src/session-service.c 2011-03-10 21:49:10 +0000
+++ src/session-service.c 2011-03-15 17:42:25 +0000
@@ -415,18 +415,25 @@
{
GError * error = NULL;
- lock_if_possible();
-
if (dbusmenu_menuitem_property_get_bool(mi, USER_ITEM_PROP_LOGGED_IN)) {
+ lock_if_possible();
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 " --no-lock", &error)) {
- g_warning("Unable to start guest session: %s", error->message);
- g_error_free(error);
+ ensure_gconf_client ();
+ if (!gconf_client_get_bool (gconf_client, LOCKDOWN_KEY_SCREENSAVER, NULL)) {
+ if (!g_spawn_command_line_async(GUEST_SESSION_LAUNCHER, &error)) {
+ g_warning("Unable to start guest session: %s", error->message);
+ g_error_free(error);
+ }
+ } else {
+ if (!g_spawn_command_line_async(GUEST_SESSION_LAUNCHER " --no-lock", &error)) {
+ g_warning("Unable to start guest session: %s", error->message);
+ g_error_free(error);
+ }
}
return;