1 diff --git a/daemon/gdm-x-session.c.orig b/daemon/gdm-x-session.c
2 index d835b34..1f4b7f1 100644
3 --- a/daemon/gdm-x-session.c.orig
4 +++ b/daemon/gdm-x-session.c
5 @@ -211,6 +211,7 @@ spawn_x_server (State *state,
6 char *vt_string = NULL;
8 gsize display_number_size;
9 + gchar **xserver_extra_args = NULL;
11 auth_file = prepare_auth_file ();
13 @@ -285,6 +286,17 @@ spawn_x_server (State *state,
14 if (state->debug_enabled) {
15 g_ptr_array_add (arguments, "-core");
18 + if (g_getenv ("GDM_X_SERVER_EXTRA_ARGS") != NULL) {
19 + g_debug ("using GDM_X_SERVER_EXTRA_ARGS: %s", g_getenv("GDM_X_SERVER_EXTRA_ARGS"));
20 + xserver_extra_args = g_strsplit(g_getenv("GDM_X_SERVER_EXTRA_ARGS"), " ", -1);
21 + for (gchar **extra_arg = xserver_extra_args; *extra_arg; extra_arg++) {
22 + if (strlen(*extra_arg) < 1) continue;
23 + g_debug ("adding: %s", *extra_arg);
24 + g_ptr_array_add (arguments, *extra_arg);
28 g_ptr_array_add (arguments, NULL);
30 subprocess = g_subprocess_launcher_spawnv (launcher,
31 @@ -332,6 +344,7 @@ spawn_x_server (State *state,
35 + g_strfreev(xserver_extra_args);
36 g_clear_pointer (&auth_file, g_free);
37 g_clear_object (&data_stream);
38 g_clear_object (&subprocess);