diff --git a/build.gradle b/build.gradle index 1c15616470a..0f6a00b6e1e 100644 --- a/build.gradle +++ b/build.gradle @@ -592,7 +592,6 @@ jlink { '--linux-menu-group', 'Office;', '--linux-rpm-license-type', 'MIT', // '--license-file', "${projectDir}/LICENSE.md", - '--file-associations', "${projectDir}/buildres/linux/desktop.properties", '--description', 'JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.', '--linux-shortcut' ] diff --git a/buildres/linux/copyright b/buildres/linux/copyright index 5e06048e6f0..19375cdd331 100644 --- a/buildres/linux/copyright +++ b/buildres/linux/copyright @@ -1,5 +1,5 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * -Copyright: APPLICATION_COPYRIGHT -License: APPLICATION_LICENSE_TEXT \ No newline at end of file +Copyright: Copyright (C) 2003-2019 JabRef Authors +License: MIT diff --git a/buildres/linux/desktop.properties b/buildres/linux/desktop.properties deleted file mode 100644 index a7798f073f5..00000000000 --- a/buildres/linux/desktop.properties +++ /dev/null @@ -1 +0,0 @@ -mime-type=text/x-bibtex; \ No newline at end of file diff --git a/buildres/linux/jabref-JabRef.desktop b/buildres/linux/jabref-JabRef.desktop index 47b3b7c5105..38d696ec584 100644 --- a/buildres/linux/jabref-JabRef.desktop +++ b/buildres/linux/jabref-JabRef.desktop @@ -6,6 +6,7 @@ Exec=APPLICATION_LAUNCHER Icon=APPLICATION_ICON Terminal=false Type=Application +MimeType=text/x-bibtex; Categories=DEPLOY_BUNDLE_CATEGORY Keywords=bibtex;biblatex;latex;bibliography StartupWMClass=org-jabref-JabRefMain \ No newline at end of file diff --git a/buildres/linux/prerm b/buildres/linux/postrm similarity index 77% rename from buildres/linux/prerm rename to buildres/linux/postrm index 1c6f04c7db5..7cb08bc3746 100644 --- a/buildres/linux/prerm +++ b/buildres/linux/postrm @@ -18,9 +18,10 @@ set -e # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - INSTALL_PATH="/usr/lib/mozilla/native-messaging-hosts/" - if grep --quiet '"path": "/opt' /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json; then - rm -D -m0755 /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH + INSTALL_PATH="/usr/lib/mozilla/native-messaging-hosts" + if grep --quiet '"path": "/opt' $INSTALL_PATH/org.jabref.jabref.json; then + rm $INSTALL_PATH/org.jabref.jabref.json + fi ;; *)