From 138634e0c26c505fc4671340e4f3447ff8329926 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:04:22 -0600 Subject: [PATCH] Cura and PrusaSlicer: remove STL mimeapp on uninstall --- apps/Cura/uninstall | 5 ++++- apps/PrusaSlicer/uninstall | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/Cura/uninstall b/apps/Cura/uninstall index d7d10fd69f..796716a452 100755 --- a/apps/Cura/uninstall +++ b/apps/Cura/uninstall @@ -4,7 +4,10 @@ purge_packages || exit 1 rm -f ~/.local/share/applications/cura.desktop rm -f ~/Cura-mb-master-armhf-20200902.AppImage rm -rf ~/.cache/cura -sudo rm -f /opt/Cura.AppImage +sudo rm -f /opt/Cura.AppImage /usr/share/applications/cura.desktop + +#remove mime association +sed -i '/model\/stl=cura\.desktop;/d' ~/.config/mimeapps.list #remove the libxcb-util.so.0 symlink, only if it's a symlink if [ -h /usr/lib/arm-linux-gnueabihf/libxcb-util.so.0 ];then diff --git a/apps/PrusaSlicer/uninstall b/apps/PrusaSlicer/uninstall index 95e1b0a657..bb3229d2cb 100755 --- a/apps/PrusaSlicer/uninstall +++ b/apps/PrusaSlicer/uninstall @@ -2,3 +2,6 @@ purge_packages || exit 1 sudo rm -f /opt/PrusaSlicer.AppImage /usr/local/share/applications/PrusaSlicer.desktop /usr/share/applications/PrusaSlicer.desktop ~/PrusaSlicer.AppImage ~/.local/share/applications/PrusaSlicer.desktop + +#remove mime association +sed -i '/model\/stl=PrusaSlicer\.desktop;/d' ~/.config/mimeapps.list