summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-16 23:53:13 -0500
committerRay Strode <rstrode@redhat.com>2015-02-17 23:48:10 -0500
commit7d0a563515350a33a420cbac2bf9d24db963faf0 (patch)
tree3db1d99864cc529dc4d187ce28b7ec0d7285f0fb
parentb9b5188da7567f12d9105c8c05f2d2cc8c096c74 (diff)
downloadgdm-7d0a563515350a33a420cbac2bf9d24db963faf0.tar.gz
wip: session: run wayland unconditionally for login screen
This is a work in progress, it needs to be more intelligent and conditional.
-rw-r--r--daemon/gdm-launch-environment.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index a11aa9fd..f569f253 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,