[gdm/wip/wayland-at-login-screen: 69/70] wip: session: run wayland unconditionally for login screen
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/wayland-at-login-screen: 69/70] wip: session: run wayland unconditionally for login screen
- Date: Wed, 18 Feb 2015 06:29:17 +0000 (UTC)
commit 7d0a563515350a33a420cbac2bf9d24db963faf0
Author: Ray Strode <rstrode redhat com>
Date: Mon Feb 16 23:53:13 2015 -0500
wip: session: run wayland unconditionally for login screen
This is a work in progress, it needs to be more intelligent
and conditional.
daemon/gdm-launch-environment.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index a11aa9f..f569f25 100644
--- a/daemon/gdm-launch-environment.c
+++ b/daemon/gdm-launch-environment.c
@@ -505,6 +505,13 @@ gdm_launch_environment_start (GdmLaunchEnvironment *launch_environment)
gdm_session_start_conversation (launch_environment->priv->session, "gdm-launch-environment");
gdm_session_select_program (launch_environment->priv->session, launch_environment->priv->command);
+
+ /* HACK
+ */
+ if (strstr (launch_environment->priv->command, "wayland") != NULL) {
+ g_object_set (G_OBJECT (launch_environment->priv->session), "display-is-wayland", TRUE,
NULL);
+ }
+
res = TRUE;
out:
if (local_error) {
@@ -942,6 +949,7 @@ create_gnome_session_environment (const char *session_id,
NULL);
g_free (command);
+
return launch_environment;
}
@@ -951,7 +959,7 @@ gdm_create_greeter_launch_environment (const char *display_name,
const char *display_hostname,
gboolean display_is_local)
{
- return create_gnome_session_environment (NULL,
+ return create_gnome_session_environment ("gnome-wayland",
GDM_USERNAME,
display_name,
seat_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]