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

1
Cargo.lock generated
View file

@ -1375,6 +1375,7 @@ version = "1.0.11"
dependencies = [
"anyhow",
"atomic_float",
"bstr",
"bzip2",
"compio",
"cosmic-client-toolkit",