From c42a0b4f17b81b8f78494d15872e54df589cd5ec Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 19 Mar 2012 12:33:25 -0400 Subject: user-switching: fix seat id confusion There's a few places in the code that was hardcoding consolekit paths still. This commit does some small changes to make that more systemd compatible. https://bugzilla.gnome.org/show_bug.cgi?id=655380 --- utils/gdmflexiserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c index 423a8373..4e07413a 100644 --- a/utils/gdmflexiserver.c +++ b/utils/gdmflexiserver.c @@ -688,7 +688,7 @@ goto_login_session_for_ck (DBusConnection *connection, } } - if (! ret) { + if (! ret && g_strcmp0 (seat_id, "/org/freedesktop/ConsoleKit/Seat1") == 0) { res = create_transient_display (connection, error); if (res) { ret = TRUE; @@ -878,7 +878,7 @@ goto_login_session_for_systemd (DBusConnection *connection, } } - if (! ret) { + if (! ret && g_strcmp0 (seat_id, "seat0") == 0) { res = create_transient_display (connection, error); if (res) { ret = TRUE; -- cgit v1.2.1