From 150cc41011127b88035a29b2618cf16bfea91ae7 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:20:11 -0600 Subject: [PATCH] Boxy SVG: fix mimeapps association: semicolon made it ignore svg --- apps/Boxy SVG/install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/Boxy SVG/install b/apps/Boxy SVG/install index b98266826d..b0fb6e536e 100755 --- a/apps/Boxy SVG/install +++ b/apps/Boxy SVG/install @@ -47,10 +47,16 @@ cat << "EOF" | sudo tee /usr/local/bin/boxy-svg >/dev/null EOF sudo chmod +x /usr/local/bin/boxy-svg -if [ -z "$(cat ~/.config/mimeapps.list | grep 'boxy-svg.desktop')" ];then +#remove broken mime association +if grep -qF 'image/svg+xml;application/illustrator=boxy-svg.desktop;' ~/.config/mimeapps.list ;then + echo "$(grep -vF 'image/svg+xml;application/illustrator=boxy-svg.desktop;' ~/.config/mimeapps.list)" > ~/.config/mimeapps.list +fi + +if ! grep -qF 'boxy-svg.desktop' ~/.config/mimeapps.list ;then echo "Associating the SVG mimetype with Boxy SVG..." echo "[Added Associations] -image/svg+xml;application/illustrator=boxy-svg.desktop;" >> ~/.config/mimeapps.list +image/svg+xml=boxy-svg.desktop; +application/illustrator=boxy-svg.desktop;" >> ~/.config/mimeapps.list fi