Ubuntu 20.04 on Hyper-V VM
I have tried following this but having no luck. The file shows in the app drawer but nothing happens when I click it. Here is what I have in my jmol.desktop file.
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Jmol
Comment=Jmol-14.31.0
Exec=/home/adamch/Downloads/Jmol-14.31.0-binary/jmol-14.31.0/Jmol.jar
Icon=/home/adamch/Downloads/Jmol_icon_win.ico
Terminal=false
StartupWMClass=Jmol
The app works in the terminal by using java -jar Jmol.jar
so is there a way to put that in the .desktop file and make it work?
python3 -c 'from gi.repository import Gio; Gio.DesktopAppInfo.new_from_filename("jmol.desktop").launch(None, None)'
(one long line) in the folder where you saved thejmol.desktop
file? – Florian Diesch Jun 08 '20 at 15:03Edit: ok I can add it to favourites, just only in the app drawer, not after I've opened it. Also clicking the app on the taskbar opens another instance but its fine as long as I can open the app quickly.
– Adam Ch Jun 09 '20 at 16:09