From a76c208bae8f99845ffebb17e0a7a841ceb5ac5c Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 4 Aug 2021 13:18:31 +0200 Subject: [PATCH] Ports: Support icons for launchers with arguments --- Ports/.port_include.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index dd925c65f3..bae6d29620 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -145,21 +145,22 @@ install_launcher() { echo "Syntax: install_launcher " exit 1 fi - launcher_name="$1" - launcher_category="$2" - launcher_command="$3" - launcher_filename="${launcher_name,,}" + local launcher_name="$1" + local launcher_category="$2" + local launcher_command="$3" + local launcher_filename="${launcher_name,,}" launcher_filename="${launcher_filename// /}" + local icon_override="" case "$launcher_command" in *\ *) mkdir -p $DESTDIR/usr/local/libexec launcher_executable="/usr/local/libexec/$launcher_filename" cat >"$DESTDIR/$launcher_executable" <