summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2012-03-19 12:33:25 -0400
committerRay Strode <rstrode@redhat.com>2012-03-19 12:33:25 -0400
commitc42a0b4f17b81b8f78494d15872e54df589cd5ec (patch)
tree8719d081e1e940467f3ab770e68514ebe78a95c1 /utils
parentabd563e068b6fd7f6f73ca86b8d451286cbe3ca4 (diff)
downloadgdm-c42a0b4f17b81b8f78494d15872e54df589cd5ec.tar.gz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/gdmflexiserver.c4
1 files changed, 2 insertions, 2 deletions
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;