Here is my desktop file (my desktop, not an RPi) that seems to work just fine.
$ cat Desktop/YAAC.desktop
[Desktop Entry]
Name=YAAC
Exec=java -jar /home/michael/YAAC/YAAC.jar
Comment=
Terminal=false
Icon=/home/michael/YAAC/images/yaaclogo64.ico
Type=Application
I'm thinking your problem may lie in your EXEC statement. You have your PATH before the java command. Try putting it in front of the YAAC.jar file. It should also be the full path. i.e.
Exec=java -jar /home/pi/YACC/YAAC.jar
HTH,
Michael WA7SKG
Keith Kaiser wrote on 1/20/20 1:09 PM:
toggle quoted message
Show quoted text
I'd like to have an icon I can use to launch YAAC, I'd also like to add it to the menu system.
For the desktop, I right clicked on the desktop and created YAAC.desktop. Then using sudo I entered;
[Desktop Entry]
Name=YAAC
Comment=Launch YAAC
Icon=/usr/share/pixmaps/yaac.xpm
Exec=/YAAC java -jar YAAC.jar
Type=Application
Encoding=UTF-8
Terminal=false
Categories=Network;HamRadio;
Then rebooted:
After:
Double clicking it only returns:
"Invalid desktop entry file.'/home/pi/Desktop/YAAC.desktop'"
I've Googled for how to do this (generically, not just for YAAC) but none of the sites makes it any more clear than what I did. Can someone point out where to find this information or help me get it working?
_._,_._,_