From 32dbcb16134644e8c1e15839f8f0fa67d2657cb6 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 17 May 2018 07:55:34 -0700 Subject: LinGui: fix opening files on command line --- gtk/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk') 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); -- cgit v1.2.3