From 1e5c8f80efff6fbb8237114950e658f4853ab5cb Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Mon, 2 Dec 2024 10:11:16 -0700 Subject: [PATCH] fix(install/desktop): only sudo rm if necessary --- install/desktop/set-app-grid.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/desktop/set-app-grid.sh b/install/desktop/set-app-grid.sh index 4e292f2b..7b1c32ed 100644 --- a/install/desktop/set-app-grid.sh +++ b/install/desktop/set-app-grid.sh @@ -1,2 +1,4 @@ # App doesn't do anything when started from the app grid -sudo rm -rf /var/lib/flatpak/exports/share/applications/org.flameshot.Flameshot.desktop +if [ -f "/var/lib/flatpak/exports/share/applications/org.flameshot.Flameshot.desktop" ]; then + sudo rm -rf /var/lib/flatpak/exports/share/applications/org.flameshot.Flameshot.desktop +fi