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:
parent
99f387e462
commit
b52a962141
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue