fix: improve desktop entry field code handling

- The %f and %u field codes may now be expanded within a word
- Handle field code escapes (%%)
- Support the %c and %k field codes

This will notably fix desktop entries and context menu actions
that pass files as a long argument, such as `--option=%f`.
This commit is contained in:
Michael Aaron Murphy 2026-04-24 23:27:33 +02:00
parent d5dbcc7677
commit d775f3e5e8
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
5 changed files with 165 additions and 146 deletions

View file

@ -65,6 +65,7 @@ tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
thiserror = "2.0.18"
atomic_float = "1.1.0"
num_enum = "0.7.6"
bstr = "1.12.1"
# Completion-based IO runtime to enable io_uring / IOCP file IO support.
[dependencies.compio]