From c19e055881014fff399093e8a7eecdacbffac1d4 Mon Sep 17 00:00:00 2001
From: Unexpectedly Dismantled <darl@alchemyviewer.org>
Date: Mon, 10 Jun 2024 21:08:27 -0500
Subject: [PATCH] Add check for Release channel to desktop entry script

---
 indra/newview/linux_tools/refresh_desktop_app_entry.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/indra/newview/linux_tools/refresh_desktop_app_entry.sh b/indra/newview/linux_tools/refresh_desktop_app_entry.sh
index 4a978fd2b58..820a847fcb2 100755
--- a/indra/newview/linux_tools/refresh_desktop_app_entry.sh
+++ b/indra/newview/linux_tools/refresh_desktop_app_entry.sh
@@ -16,6 +16,13 @@ else
     exit 1
 fi
 
+# Check for the Release channel. This channel should not have the channel name in its launcher.
+if [ "$channel" = "Alchemy Release" ]; then
+    launcher_name="Alchemy"
+else
+    launcher_name=$channel
+fi
+
 install_desktop_entry()
 {
     installation_prefix="${1}"
@@ -23,7 +30,7 @@ install_desktop_entry()
 
     desktop_entry="\
 [Desktop Entry]\n\
-Name=${channel}\n\
+Name=${launcher_name}\n\
 Comment=Client for the On-line Virtual World, Second Life\n\
 Exec=${installation_prefix}/alchemy\n\
 Icon=${installation_prefix}/alchemy_icon.png\n\
-- 
GitLab