fixed issue when desktop has multiple matches
This commit is contained in:
parent
f46ab5cf14
commit
59b1b362e2
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ getIcon() {
|
|||
|
||||
desktop=$(getIcon "$1" "$2")
|
||||
if [ -n "$desktop" ]; then
|
||||
desktop=$(echo "$desktop" | awk 'NR==1')
|
||||
icon=$(awk -F'[[:space:]]*=[[:space:]]*' '/Icon[[:space:]]*=/ && !seen[$2]++ {print $2; exit}' "$desktop")
|
||||
echo -n "${icon}.svg"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue