diff options
Diffstat (limited to 'daemon/gdm-server.c')
-rw-r--r-- | daemon/gdm-server.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c index 6f2a9391..ad990abd 100644 --- a/daemon/gdm-server.c +++ b/daemon/gdm-server.c @@ -278,17 +278,18 @@ static void gdm_server_init_command (GdmServer *server) { gboolean debug = FALSE; - const char *logverbose; + const char *debug_options; if (server->priv->command != NULL) { return; } gdm_settings_direct_get_boolean (GDM_KEY_DEBUG, &debug); - if (debug) - logverbose = " -logverbose 7"; - else - logverbose = ""; + if (debug) { + debug_options = " -logverbose 7 -core "; + } else { + debug_options = ""; + } #ifdef WITH_SYSTEMD @@ -319,13 +320,13 @@ gdm_server_init_command (GdmServer *server) goto fallback; } - server->priv->command = g_strdup_printf (SYSTEMD_X_SERVER " -br -verbose%s", logverbose); + server->priv->command = g_strdup_printf (SYSTEMD_X_SERVER " -br -verbose%s", debug_options); return; fallback: #endif - server->priv->command = g_strdup_printf (X_SERVER " -br -verbose%s", logverbose); + server->priv->command = g_strdup_printf (X_SERVER " -br -verbose%s", debug_options); } static gboolean |