Improve support for XDG Intents
Related to: !4119 (closed)
This allows to
- Query a GDesktopAppInfo for supported intents
- Looking up supported intents in a certain scope with priority (defined in the draft intent-apps spec)
- Using the
intent.cachecache file for lookups instead of iterating over all desktop files (will be added to the intent-apps spec) - Using the Terminal intent (draft spec) to launch the default terminal for GDesktopAppInfos which require a terminal
The specs this implements are all drafts, but someone has to make the first step. I will open new PRs for the intent-apps and terminal-intent specs later which align with what the MR here does.
https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/merge_requests/27 implements the logic for updating intent.cache via the update-desktop-database command.
Ptyxis has support a MR for adding the Terminal intent chergert/ptyxis!119 (comment 2545725), so this feature can be tested end-to-end.
Edited by Sebastian Wick