diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/users-service-dbus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index d581887..86007c3 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -609,6 +609,7 @@ seat_proxy_session_added (DBusGProxy *seat_proxy, dbusmenu_menuitem_property_set_bool(priv->guest_item, USER_ITEM_PROP_LOGGED_IN, TRUE); } priv->guest_session_id = g_strdup(session_id); + g_debug("Found guest session: %s", priv->guest_session_id); return; } @@ -634,7 +635,10 @@ seat_proxy_session_removed (DBusGProxy *seat_proxy, username = g_hash_table_lookup (priv->sessions, session_id); if (!username) { if (g_strcmp0(session_id, priv->guest_session_id) == 0) { - dbusmenu_menuitem_property_set_bool(priv->guest_item, USER_ITEM_PROP_LOGGED_IN, FALSE); + g_debug("Removing guest session: %s", priv->guest_session_id); + if (priv->guest_item != NULL) { + dbusmenu_menuitem_property_set_bool(priv->guest_item, USER_ITEM_PROP_LOGGED_IN, FALSE); + } g_free(priv->guest_session_id); priv->guest_session_id = NULL; } |