From c444540866e4e2fafd340f01d94e934024b982fb Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 18 Nov 2018 06:38:05 +0100 Subject: [PATCH] Use first scalable icon in case there are multiple ones E.g., in QElectroTech --- code/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/worker.sh b/code/worker.sh index 5b4d3939..4df6e3e6 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -135,7 +135,7 @@ echo "ICON_NAME: ${ICON_NAME}" # Then, try scaleable icon from usr/share # matching the Icon= entry in the desktop file -ICONFILE=$(find "$APPDIR" -name "$ICON_NAME.svg*" -path "*/scalable/*") +ICONFILE=$(find "$APPDIR" -name "$ICON_NAME.svg*" -path "*/scalable/*" | head -n 1) # Then, try large icons from usr/share # matching the Icon= entry in the desktop file