Ensuring properties are different when they're edited, + linux installation editions*.
*in preparation for snapcraft. - Moving application launch to it's separate file - Removing "install_after_setup" script because it's redundant with setup.py. - Fixed issue with xdg-icon-resource not being able to install svg files. - Better prefix handling in setup.py - Adding logarithmplotter.svg to import files - Adding weight for mime-type not to be overloaded by text/plain. - Using more appropriate properties for desktop files. Also: - Fixed reference link in MacOS plist file.
This commit is contained in:
parent
ee15835dbb
commit
10fa30e2aa
14 changed files with 86 additions and 197 deletions
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
@ -1,29 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# AccountFree - Browse and use online services, free of account.
|
||||
# Copyright (C) 2021 Ad5001 <mail@ad5001.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
APPROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
echo "Adding desktop file..."
|
||||
xdg-desktop-menu install "$APPROOT/linux/logarithmplotter.desktop"
|
||||
echo "Installing mime-type..."
|
||||
xdg-mime install "$APPROOT/linux/x-logarithm-plot.xml"
|
||||
echo "Installing icons..."
|
||||
xdg-icon-resource install --context mimetypes --novendor "$APPROOT/logplotterfile.svg" "application-x-logarithm-plot"
|
||||
xdg-icon-resource install --context apps --novendor "$APPROOT/logplotter.svg" "logarithmplotter"
|
||||
update-mime-database ~/.local/share/mime/
|
||||
update-icon-caches ~/.local/share/icons/hicolor
|
|
@ -16,6 +16,7 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This script installs the desktop file & mime type for development environment, linking it directly to run.py.
|
||||
|
||||
APPROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
echo "Adding desktop file..."
|
||||
|
@ -24,7 +25,12 @@ xdg-desktop-menu install "$APPROOT/linux/logarithmplotter-local.desktop"
|
|||
echo "Installing mime-type..."
|
||||
xdg-mime install "$APPROOT/linux/x-logarithm-plot.xml"
|
||||
echo "Installing icons..."
|
||||
xdg-icon-resource install --context mimetypes --novendor "$APPROOT/logplotterfile.svg" "application-x-logarithm-plot"
|
||||
xdg-icon-resource install --context apps --novendor "$APPROOT/logplotter.svg" "logarithmplotter"
|
||||
mkdir -p ~/.local/share/icons/hicolor/scalable/mimetypes
|
||||
cp "$APPROOT/linux/application-x-logarithm-plot.svg" ~/.local/share/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg
|
||||
mkdir -p ~/.local/share/icons/hicolor/scalable/apps
|
||||
cp "$APPROOT/logplotter.svg" ~/.local/share/icons/hicolor/scalable/apps/logarithmplotter.svg
|
||||
# xdg-icon-resource does not work with SVG yet. See https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/790449.
|
||||
#xdg-icon-resource install --context mimetypes --novendor "$APPROOT/linux/application-x-logarithm-plot.svg" "application-x-logarithm-plot"
|
||||
#xdg-icon-resource install --context apps --novendor "$APPROOT/logplotter.svg" "logarithmplotter"
|
||||
update-mime-database ~/.local/share/mime/
|
||||
update-icon-caches ~/.local/share/icons/hicolor
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
Version=1.0
|
||||
Type=Application
|
||||
Name=LogarithmPlotter
|
||||
Comment=2D plotter software to make BODE diagrams, sequences and repartition functions.
|
||||
Comment[fr]=Logiciel de traçage 2D pour les diagrammes de BODE, les suites et les fonctions de répartition.
|
||||
GenericName=2D plotter software
|
||||
GenericName[fr]=Logiciel de traçage 2D
|
||||
Comment=Create BODE diagrams, sequences and repartition functions.
|
||||
Comment[fr]=Créer des diagrammes de BODE, des suites et des fonctions de répartition.
|
||||
|
||||
Exec=/usr/bin/python3 ROOTFOLDER/run.py %f
|
||||
Icon=logarithmplotter
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<comment xml:lang="fr">Fichier Graphe Logarithmique</comment>
|
||||
<icon name="application-x-logarithm-plot"/>
|
||||
<glob-deleteall/>
|
||||
<glob pattern="*.json"/>
|
||||
<glob pattern="*.lgg"/>
|
||||
<glob pattern="*.lpf"/>
|
||||
<glob weight="60" pattern="*.json"/>
|
||||
<glob weight="60" pattern="*.lgg"/>
|
||||
<glob weight="60" pattern="*.lpf"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue