-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add linux desktop launcher #5444
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Desktop Entry] | ||
Name=JabRef | ||
GenericName=BibTeX Editor | ||
Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format. | ||
Type=Application | ||
Terminal=false | ||
Icon=/opt/jabref/lib/JabRef.png | ||
Exec=/opt/jabref/bin/JabRef %U | ||
Keywords=bibtex;biblatex;latex;bibliography | ||
Categories=Office; | ||
StartupWMClass=org-jabref-JabRefMain | ||
MimeType=text/x-bibtex; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ set -e | |
case "$1" in | ||
configure) | ||
INSTALL_PATH="/usr/lib/mozilla/native-messaging-hosts/" | ||
mkdir -p $INSTALL_PATH | ||
\cp /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH | ||
chmod a+x "/opt/jabref/lib/jabrefHost.py" | ||
install -D -m0755 /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH | ||
install -D -m0644 /opt/jabref/lib/jabref.desktop /usr/share/applications/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I created the postinst file, I made a mistake and didn't used the template from https://hg.openjdk.java.net/jdk/sandbox/file/47f0d21c7e8d/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/template.postinst. Could you please use this as a base. Should make it unnecessary to copy the desktop file by hand. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The page is not loading :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here...stange There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. java.net was down today, is working again |
||
;; | ||
|
||
abort-upgrade|abort-remove|abort-deconfigure) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to use the command line options as much as possible. They also apply to the rpm installer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the jpackage options? There is a tradeoff, as i mentioned in the comment
(The launcher should be exactly the same for the rpm, or am I missing something?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the jpackage options. If the WM option is really necessary, we can keep the custom desktop file in the form of a modified https://hg.openjdk.java.net/jdk/sandbox/file/47f0d21c7e8d/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/template.desktop (I'm guessing the file name here) but should still use the command line options. Moreover, it should be reported to the java devs that such an option would be worthwhile to add (remember jpackage is beta).