[totem] main: Fix remote Totem exiting when --help was called



commit d6387e98a7654733a8a0a34fb53b658448edce91
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 13 16:01:03 2012 +0100

    main: Fix remote Totem exiting when --help was called
    
    The age-old bug. Run totem &, and totem --help would exit the
    already running instance.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679621

 src/totem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index a5c323f..5334930 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -194,6 +194,7 @@ app_command_line (GApplication             *app,
 
 	/* Options parsing */
 	context = totem_options_get_context ();
+	g_option_context_set_help_enabled (context, FALSE);
 	if (g_option_context_parse (context, &argc, &argv, NULL) == FALSE) {
 	        g_option_context_free (context);
 	        return 1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]