Skip to content

Commit

Permalink
Readd file associations (#5625)
Browse files Browse the repository at this point in the history
* Readd file associations

Fixes #5520.

* Fix mime types of JabRef on Linux

Co-authored-by: Galileo Sartor <[email protected]>

* Update buildres/linux/JabRef.desktop

Co-Authored-By: Galileo Sartor <[email protected]>

* Update bibtexAssociations.properties
  • Loading branch information
tobiasdiez authored Nov 19, 2019
1 parent 357436b commit 80154a4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ jlink {
'--win-dir-chooser',
'--win-shortcut',
'--temp', "$buildDir/installer",
'--resource-dir', "${projectDir}/buildres/windows"
'--resource-dir', "${projectDir}/buildres/windows",
'--file-associations', "${projectDir}/buildres/windows/bibtexAssociations.properties"
]
}

Expand All @@ -635,7 +636,8 @@ jlink {
'--linux-rpm-license-type', 'MIT',
// '--license-file', "${projectDir}/LICENSE.md",
'--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'
'--linux-shortcut',
'--file-associations', "${projectDir}/buildres/linux/bibtexAssociations.properties"
]
}

Expand All @@ -645,7 +647,8 @@ jlink {
]
installerOptions = [
'--vendor', 'JabRef',
'--app-version', "${project.version}"
'--app-version', "${project.version}",
'--file-associations', "${projectDir}/buildres/mac/bibtexAssociations.properties"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Exec=APPLICATION_LAUNCHER
Icon=APPLICATION_ICON
Terminal=false
Type=Application
MimeType=text/x-bibtex;
DESKTOP_MIMES
Categories=DEPLOY_BUNDLE_CATEGORY
Keywords=bibtex;biblatex;latex;bibliography
StartupWMClass=org-jabref-JabRefMain
StartupWMClass=org-jabref-JabRefMain
4 changes: 4 additions & 0 deletions buildres/linux/bibtexAssociations.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extension=bib
mime-type=text/x-bibtex
description=BibTeX File
icon=JabRef.png
4 changes: 4 additions & 0 deletions buildres/mac/bibtexAssociations.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extension=bib
mime-type=text/x-bibtex
description=BibTeX File
icon=jabref.icns
4 changes: 4 additions & 0 deletions buildres/windows/bibtexAssociations.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extension=bib
mime-type=text/x-bibtex
description=BibTeX File
icon=JabRef.ico

0 comments on commit 80154a4

Please sign in to comment.