From bcd1d489228dad06bd144b8f404667b4a7405ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sun, 12 May 2024 16:28:34 +0200 Subject: [PATCH] clapper-app: Add command line context params string Describe what kind of remaining (non-options) strings can be passed when launching via command line. --- src/bin/clapper-app/clapper-app-application.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/clapper-app/clapper-app-application.c b/src/bin/clapper-app/clapper-app-application.c index 3d0b977a..d1f3f28b 100644 --- a/src/bin/clapper-app/clapper-app-application.c +++ b/src/bin/clapper-app/clapper-app-application.c @@ -666,6 +666,8 @@ clapper_app_application_constructed (GObject *object) for (i = 0; i < G_N_ELEMENTS (app_shortcuts); ++i) gtk_application_set_accels_for_action (GTK_APPLICATION (app), app_shortcuts[i].action, app_shortcuts[i].accels); + g_application_set_option_context_parameter_string (app, "[URI1|FILE1] [URI2|FILE2] …"); + g_application_add_main_option_entries (app, app_options); g_application_add_option_group (app, gst_init_get_option_group ());