From 09c2ea21092e87ce7912d6944b49d71f6046c1e0 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sun, 16 Jan 2022 05:55:34 +1300 Subject: [PATCH] Remove the rare menu item when it is not installed --- overlay/opt/scripts/install_legendary.sh | 17 ++++++++++++++++- overlay/usr/share/applications/rare.desktop | 11 ----------- 2 files changed, 16 insertions(+), 12 deletions(-) delete mode 100644 overlay/usr/share/applications/rare.desktop diff --git a/overlay/opt/scripts/install_legendary.sh b/overlay/opt/scripts/install_legendary.sh index a02de73..c765d1e 100644 --- a/overlay/opt/scripts/install_legendary.sh +++ b/overlay/opt/scripts/install_legendary.sh @@ -5,7 +5,7 @@ # File Created: Thursday, 1st January 1970 12:00:00 pm # Author: Console and webGui login account (jsunnex@gmail.com) # ----- -# Last Modified: Sunday, 16th January 2022 4:54:27 am +# Last Modified: Sunday, 16th January 2022 5:44:25 am # Modified By: Console and webGui login account (jsunnex@gmail.com) ### @@ -48,6 +48,21 @@ install() { # Remove installer shortcut rm -f /usr/share/applications/install.legendary.desktop + +# Add launcher shortcut +cat << EOF > /usr/share/applications/rare.desktop +[Desktop Entry] +Name=Rare - (Epic Games Store) +Comment=A frontend for legendary, the open source Epic Games Store alternative +GenericName=Rare - (Epic Games Store) +X-GNOME-FullName=Rare - (Epic Games Store) +Exec=/usr/local/bin/rare %u +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=rare +Categories=Game; +EOF } diff --git a/overlay/usr/share/applications/rare.desktop b/overlay/usr/share/applications/rare.desktop deleted file mode 100644 index 3bbdd38..0000000 --- a/overlay/usr/share/applications/rare.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Name=Rare - (Epic Games Store) -Comment=A frontend for legendary, the open source Epic Games Store alternative -GenericName=Rare - (Epic Games Store) -X-GNOME-FullName=Rare - (Epic Games Store) -Exec=/usr/local/bin/rare %u -Terminal=false -X-MultipleArgs=false -Type=Application -Icon=rare -Categories=Game;