desktopToDarwinBundle: Implement %i Exec field code

This commit is contained in:
toonn 2022-03-31 13:44:15 +02:00
parent 4dc94e1489
commit 196f989ae8
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -176,7 +176,9 @@ processExecFieldCodes() {
local -r execRaw=$(getDesktopParam "${file}" "Exec")
local -r execNoK="${execRaw/\%k/${file}}"
local -r execNoKC="${execNoK/\%c/$(getDesktopParam "${file}" "Name")}"
local -r exec="${execNoKC// %[fFuUi]}"
local -r icon=$(getDesktopParam "${file}" "Icon")
local -r execNoKCI="${execNoKC/\%i/${icon:+--icon }${icon}}"
local -r exec="${execNoKCI// %[fFuU]}"
if [[ "$exec" != "$execRaw" ]]; then
echo 1>&2 "desktopToDarwinBundle: Application bundles do not understand desktop entry field codes. Changed '$execRaw' to '$exec'."
fi