diff options
author | toonn <toonn@toonn.io> | 2022-03-31 13:00:11 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-03-31 13:00:11 +0200 |
commit | 4dc94e1489fd7045e4b898996cecfbf28ed87ab3 (patch) | |
tree | 33c6d5fc1e1d95ad1a58b60a916beaf416b69f6b /pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh | |
parent | 4a749a89c453551e107567cdf5d80165383b537f (diff) | |
download | nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar.gz nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar.bz2 nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar.lz nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar.xz nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.tar.zst nixpkgs-4dc94e1489fd7045e4b898996cecfbf28ed87ab3.zip |
desktopToDarwinBundle: Implement %c Exec field code
Diffstat (limited to 'pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh')
-rw-r--r-- | pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh b/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh index 7ce6c5c82b7..5b8a4d0e90f 100644 --- a/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh +++ b/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh @@ -175,7 +175,8 @@ processExecFieldCodes() { local -r file=$1 local -r execRaw=$(getDesktopParam "${file}" "Exec") 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 echo 1>&2 "desktopToDarwinBundle: Application bundles do not understand desktop entry field codes. Changed '$execRaw' to '$exec'." fi |