desktopToDarwinBundle: Implement %c Exec field code
This commit is contained in:
parent
4a749a89c4
commit
4dc94e1489
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ processExecFieldCodes() {
|
||||||
local -r file=$1
|
local -r file=$1
|
||||||
local -r execRaw=$(getDesktopParam "${file}" "Exec")
|
local -r execRaw=$(getDesktopParam "${file}" "Exec")
|
||||||
local -r execNoK="${execRaw/\%k/${file}}"
|
local -r execNoK="${execRaw/\%k/${file}}"
|
||||||
local -r exec="${execNoK// %[fFuUic]}"
|
local -r execNoKC="${execNoK/\%c/$(getDesktopParam "${file}" "Name")}"
|
||||||
|
local -r exec="${execNoKC// %[fFuUi]}"
|
||||||
if [[ "$exec" != "$execRaw" ]]; then
|
if [[ "$exec" != "$execRaw" ]]; then
|
||||||
echo 1>&2 "desktopToDarwinBundle: Application bundles do not understand desktop entry field codes. Changed '$execRaw' to '$exec'."
|
echo 1>&2 "desktopToDarwinBundle: Application bundles do not understand desktop entry field codes. Changed '$execRaw' to '$exec'."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue