desktopToDarwinBundle: Complete field code removal

Checked the desktop entry spec, there's other field codes than `%[fFuU]`
and those can in fact occur more than once, hence dropping '$' and
adding `/g`.
This commit is contained in:
toonn 2022-03-11 20:56:44 +01:00
parent 99f387e462
commit b52a962141
No known key found for this signature in database
GPG Key ID: 44FF902A66DF4576

View File

@ -176,7 +176,8 @@ convertDesktopFile() {
local -r file=$1
local -r sharePath=$(dirname "$(dirname "$file")")
local -r name=$(getDesktopParam "${file}" "^Name")
local -r exec=$(getDesktopParam "${file}" "Exec" | sed -e 's/ %[fFuU]$//')
local -r exec=$(getDesktopParam "${file}" "Exec" \
| sed -e 's/ %[fFuUick]//g')
local -r iconName=$(getDesktopParam "${file}" "^Icon")
local -r squircle=$(getDesktopParam "${file}" "X-macOS-SquircleIcon")