12 lines
766 B
Bash
12 lines
766 B
Bash
#!/bin/bash
|
|
APPROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
echo "Adding desktop file..."
|
|
mkdir -p ~/.local/share/applications
|
|
sed "s+/home/ad5001/Apps/LogarithmPlotter/+$APPROOT/+g" "$APPROOT/linux/logplotter.desktop" > ~/.local/share/applications/logplotter.desktop
|
|
echo "Installing mime-type..."
|
|
mkdir -p ~/.local/share/applications
|
|
sed "s+/home/ad5001/Apps/LogarithmPlotter/+$APPROOT/+g" "$APPROOT/linux/x-logarithm-plotter.xml" > ~/.local/share/mime/packages/x-logarithm-plotter.xml
|
|
mkdir -p ~/.local/share/icons/hicolor/scalable/mimetypes
|
|
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
|