Commit 41d7c84c authored by Ray Strode's avatar Ray Strode

main: allow turning on debugging from environment variable

having to pass --debug is pretty onerous for the user given the
user doesn't normally run gnome-session directly.

This commit lets users throw GNOME_SESSION_DEBUG=yes into
parent e95bbf63
......@@ -257,6 +257,10 @@ main (int argc, char **argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
if (g_getenv ("GNOME_SESSION_DEBUG") != NULL) {
debug = rpmatch (g_getenv ("GNOME_SESSION_DEBUG"));
error = NULL;
options = g_option_context_new (_(" - the GNOME session manager"));
g_option_context_add_main_entries (options, entries, GETTEXT_PACKAGE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment