If I create a Java-desktop-file in ~/.local/share/applications
I do not have the option "Add to Favorites".
I tried it with JabRef:
[Desktop Entry]
Type=Application
Terminal=false
Icon=org-jabref-jabrefmain.png
Path=/home/jkalliau/prgm/JabRef
Exec=java -jar JabRef--master--latest.jar %U
Name=JabRef
GenericName=BibTeX Editor
Comment=JabRef is an open source bibliography reference manager.
Keywords=bibtex;biblatex;latex;bibliography
Categories=Office;
StartupWMClass=org-jabref-JabRefMain
MimeType=text/x-bibtex;
and with Maple:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Maple 2018
Type=Application
Comment=Maple 2018
Exec=/home/jkalliau/maple2018/bin/xmaple %f
Terminal=false
Icon=/home/jkalliau/maple2018/bin/Maple2018.png
GenericName=Maple
Categories=Applications;Education;Mathematics;
MimeType=application/x-maple-worksheet;
If I do the same as in How to add Eclipse to Favorites? I have the icon twice, once added to favorites and once the opened file.
JabRef
.