From: John Stebbins Date: Thu, 17 May 2018 14:55:34 +0000 (-0700) Subject: LinGui: fix opening files on command line X-Git-Tag: 1.2.0~472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32dbcb16134644e8c1e15839f8f0fa67d2657cb6;p=handbrake LinGui: fix opening files on command line --- diff --git a/gtk/src/main.c b/gtk/src/main.c index 47e03150e..d357cf8ad 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -1331,7 +1331,8 @@ main(int argc, char *argv[]) ghb_ui_register_resource(); ud = g_malloc0(sizeof(signal_user_data_t)); ud->app = gtk_application_new("org.handbrake.ghb", - G_APPLICATION_NON_UNIQUE); + G_APPLICATION_NON_UNIQUE | + G_APPLICATION_HANDLES_OPEN); // Connect application signals g_signal_connect(ud->app, "activate", (GCallback)ghb_activate_cb, ud); g_signal_connect(ud->app, "open", (GCallback)ghb_open_file_cb, ud);