|
|
7a4ca4 |
From 5c86f9731ed715bcf603c9dd93dced002f11b996 Mon Sep 17 00:00:00 2001
|
|
|
7a4ca4 |
From: Ray Strode <rstrode@redhat.com>
|
|
|
7a4ca4 |
Date: Tue, 17 Oct 2017 10:06:22 -0400
|
|
|
7a4ca4 |
Subject: [PATCH] Revert "gdm-sessions: force a session bus for non-seat0
|
|
|
7a4ca4 |
session"
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
This reverts commit 2b52d8933c8ab38e7ee83318da2363d00d8c5581.
|
|
|
7a4ca4 |
---
|
|
|
7a4ca4 |
daemon/gdm-session.c | 7 +------
|
|
|
7a4ca4 |
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
|
|
|
7a4ca4 |
index 3e71ad2f..3a1b7f23 100644
|
|
|
7a4ca4 |
--- a/daemon/gdm-session.c
|
|
|
7a4ca4 |
+++ b/daemon/gdm-session.c
|
|
|
7a4ca4 |
@@ -2870,66 +2870,61 @@ gdm_session_start_session (GdmSession *self,
|
|
|
7a4ca4 |
allow_remote_connections = TRUE;
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
if (run_launcher) {
|
|
|
7a4ca4 |
if (is_x11) {
|
|
|
7a4ca4 |
program = g_strdup_printf (LIBEXECDIR "/gdm-x-session %s %s\"%s\"",
|
|
|
7a4ca4 |
run_xsession_script? "--run-script " : "",
|
|
|
7a4ca4 |
allow_remote_connections? "--allow-remote-connections " : "",
|
|
|
7a4ca4 |
command);
|
|
|
7a4ca4 |
} else {
|
|
|
7a4ca4 |
program = g_strdup_printf (LIBEXECDIR "/gdm-wayland-session \"%s\"",
|
|
|
7a4ca4 |
command);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
} else if (run_xsession_script) {
|
|
|
7a4ca4 |
program = g_strdup_printf (GDMCONFDIR "/Xsession \"%s\"", command);
|
|
|
7a4ca4 |
} else {
|
|
|
7a4ca4 |
program = g_strdup (command);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
g_free (command);
|
|
|
7a4ca4 |
} else {
|
|
|
7a4ca4 |
if (run_launcher) {
|
|
|
7a4ca4 |
if (is_x11) {
|
|
|
7a4ca4 |
program = g_strdup_printf (LIBEXECDIR "/gdm-x-session \"%s\"",
|
|
|
7a4ca4 |
self->priv->selected_program);
|
|
|
7a4ca4 |
} else {
|
|
|
7a4ca4 |
program = g_strdup_printf (LIBEXECDIR "/gdm-wayland-session \"%s\"",
|
|
|
7a4ca4 |
self->priv->selected_program);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
} else {
|
|
|
7a4ca4 |
- if (g_strcmp0 (self->priv->display_seat_id, "seat0") != 0) {
|
|
|
7a4ca4 |
- program = g_strdup_printf ("dbus-run-session -- %s",
|
|
|
7a4ca4 |
- self->priv->selected_program);
|
|
|
7a4ca4 |
- } else {
|
|
|
7a4ca4 |
- program = g_strdup (self->priv->selected_program);
|
|
|
7a4ca4 |
- }
|
|
|
7a4ca4 |
+ program = g_strdup (self->priv->selected_program);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
set_up_session_environment (self);
|
|
|
7a4ca4 |
send_environment (self, conversation);
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
gdm_dbus_worker_call_start_program (conversation->worker_proxy,
|
|
|
7a4ca4 |
program,
|
|
|
7a4ca4 |
conversation->worker_cancellable,
|
|
|
7a4ca4 |
(GAsyncReadyCallback) on_start_program_cb,
|
|
|
7a4ca4 |
conversation);
|
|
|
7a4ca4 |
g_free (program);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
static void
|
|
|
7a4ca4 |
stop_all_conversations (GdmSession *self)
|
|
|
7a4ca4 |
{
|
|
|
7a4ca4 |
stop_all_other_conversations (self, NULL, TRUE);
|
|
|
7a4ca4 |
}
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
static void
|
|
|
7a4ca4 |
do_reset (GdmSession *self)
|
|
|
7a4ca4 |
{
|
|
|
7a4ca4 |
stop_all_conversations (self);
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
g_list_free_full (self->priv->pending_worker_connections, g_object_unref);
|
|
|
7a4ca4 |
self->priv->pending_worker_connections = NULL;
|
|
|
7a4ca4 |
|
|
|
7a4ca4 |
g_free (self->priv->selected_user);
|
|
|
7a4ca4 |
self->priv->selected_user = NULL;
|
|
|
7a4ca4 |
--
|
|
|
7a4ca4 |
2.14.2
|
|
|
7a4ca4 |
|