LogarithmPlotter/linux/install_local.sh

13 lines
726 B
Bash
Raw Normal View History

#!/bin/bash
APPROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
2021-03-09 19:37:12 +00:00
echo "Adding desktop file..."
mkdir -p ~/.local/share/applications
2021-06-21 22:27:40 +00:00
sed "s+ROOTFOLDER+$APPROOT/+g" "$APPROOT/linux/logplotter.desktop" > ~/.local/share/applications/logarithmplotter.desktop
2021-03-09 19:37:12 +00:00
echo "Installing mime-type..."
mkdir -p ~/.local/share/applications
2021-06-21 22:27:40 +00:00
sed "s+ROOTFOLDER+$APPROOT/+g" "$APPROOT/linux/x-logarithm-plotter-old.xml" > ~/.local/share/mime/packages/x-logarithm-plotter.xml
mkdir -p ~/.local/share/icons/hicolor/scalable/mimetypes
2021-06-02 17:14:42 +00:00
cp "$APPROOT/logplotterfile.svg" ~/.local/share/icons/hicolor/scalable/mimetypes/application-x-logarithm-plotter.svg
update-mime-database ~/.local/share/mime/
update-icon-caches ~/.local/share/icons/hicolor