Skip to content

Commit

Permalink
Cura and PrusaSlicer: remove STL mimeapp on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Mar 8, 2024
1 parent 281ac8f commit 138634e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/Cura/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions apps/PrusaSlicer/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 138634e

Please sign in to comment.