Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix postrm in deb #5455

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,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'
]
Expand Down
4 changes: 2 additions & 2 deletions buildres/linux/copyright
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
Copyright: APPLICATION_COPYRIGHT
License: APPLICATION_LICENSE_TEXT
Copyright: Copyright (C) 2003-2019 JabRef Authors
License: MIT
1 change: 0 additions & 1 deletion buildres/linux/desktop.properties

This file was deleted.

1 change: 1 addition & 0 deletions buildres/linux/jabref-JabRef.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions buildres/linux/prerm → buildres/linux/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

*)
Expand Down