clapper-app: Add command line context params string

Describe what kind of remaining (non-options) strings can
be passed when launching via command line.
This commit is contained in:
Rafał Dzięgiel
2024-05-12 16:28:34 +02:00
parent aac050e252
commit bcd1d48922

View File

@@ -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 ());