From 8afb3c477f9223d6ed563207732dd1bb3818511d Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sun, 27 Dec 2020 18:57:03 -0800 Subject: [PATCH] Don't try to open the display when parsing command line arguments I'm not sure why this was done in the first place, but it doesn't seem to be necessary. This change will make it easier to add alternative user interfaces. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index ba7705e4..fc2d248f 100644 --- a/src/main.c +++ b/src/main.c @@ -134,7 +134,7 @@ main_parse_cl_arguments(gint *argc, gchar ***argv) context = g_option_context_new(_("- a simple and addictive GTK2 football manager")); g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE); - g_option_context_add_group(context, gtk_get_option_group (TRUE)); + g_option_context_add_group(context, gtk_get_option_group (FALSE)); g_option_context_parse(context, argc, argv, &error); g_option_context_free(context); @@ -213,7 +213,7 @@ main_parse_debug_cl_arguments(gint *argc, gchar ***argv) context = g_option_context_new(_("- a simple and addictive GTK2 football manager")); g_option_context_set_ignore_unknown_options(context, TRUE); g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE); - g_option_context_add_group(context, gtk_get_option_group (TRUE)); + g_option_context_add_group(context, gtk_get_option_group (FALSE)); g_option_context_parse(context, argc, argv, &error); g_option_context_free(context);