Desktop actions with argument
GLib doesn't support launching desktop actions with uris or files. It is allowed by the desktop entry specification.
- https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s11.html
- https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s08.html
Most browsers such as Firefox, Chromium and now Epiphany have %U
in the Exec
key of their desktop actions.
I make use of this with an incomplete implementation in Junction see https://github.com/sonnyp/Junction/pull/46
I started an implementation in GLib, but I recognize the use case is quite narrow. Before I continue, I would like a
My proposal is to add and expose the following functions
g_desktop_app_info_action_supports_uris
g_desktop_app_info_action_supports_files
g_desktop_app_info_launch_action_with_uris
g_desktop_app_info_launch_action_with_files
Cheers
Edited by Sonny Piers