Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Icon of YAAC on Raspberry Pi Desktop
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? |
Greetings.
2 different sized icons are provided in the YAAC distribution for just this purpose (and are documented in the index for YAAC built-in help under the topic "desktop shortcuts"), but they are .ico files for use on Microsoft Windows. However, the Raspbian desktop manager will accept these files (they are used in the NW Digital Radio SD card image for their DRAWS hat). Look for <yaacInstallDirectory>/images/yaaclogo*.ico and pick one of the appropriate resolution (NWDigitalRadio used yaaclogo64.ico). Note that I'm not sure why the Exec= string in your desktop file starts with /YAAC; you can specify the YAAC.jar file with a directory prefix and YAAC will find its auxiliary files by reverse-engineering the location of the YAAC.jar file. For example, Exec=java -jar /home/pi/YAAC/YAAC.jar Hope this helps. Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of Keith Kaiser <wa0tjt@...> Sent: Monday, January 20, 2020 4:09 PM To: [email protected] Subject: [yaac-users] Icon of YAAC on Raspberry Pi Desktop 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? |
Here is my desktop file (my desktop, not an RPi) that seems to work just fine.
toggle quoted message
Show quoted text
$ 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: I'd like to have an icon I can use to launch YAAC, I'd also like to add it to the menu system. |
Hello All,
I found this discussion and I am trying to get an Icon of YAAC on my Raspberry Pi desktop. ?I do not what is stopping my Icon from working. ? My desktop file [Desktop Entry] Name=YAAC Exec=java -jar /home/pi/YAAC/YAAC.jar/ Icon=/home/pi/YAAC/images/yaaclogo64.ico TerminalS=false Type=Application Categories=HamRadio The error I am getting looks like some type of permission. ? Invalid desktop entry file'/home/pi/Desktop?yaac64.desktop' I want to get this working and I do not know how to clear the error.? Tim? KM4ESU |
I don't know if .ico files are acceptable to Raspbian. That is the variant of Microsoft Windows .bmp files used for icons. However, you could convert the .ico file to a .png file with Gimp, and then reference the .png file instead.
I think I will add that to the next YAAC build. Andrew, KA2DDO ________________________________________ From: [email protected] <[email protected]> on behalf of Tim Huffaker <thuffaker@...> Sent: Wednesday, June 12, 2024 11:38 AM To: [email protected] Subject: Re: [yaac-users] Icon of YAAC on Raspberry Pi Desktop Hello All, I found this discussion and I am trying to get an Icon of YAAC on my Raspberry Pi desktop. I do not what is stopping my Icon from working. My desktop file [Desktop Entry] Name=YAAC Exec=java -jar /home/pi/YAAC/YAAC.jar/ Icon=/home/pi/YAAC/images/yaaclogo64.ico TerminalS=false Type=Application Categories=HamRadio The error I am getting looks like some type of permission. Invalid desktop entry file'/home/pi/Desktop?yaac64.desktop' I want to get this working and I do not know how to clear the error. Tim KM4ESU |
Tim, This is my YAAC desktop entry and it works as expected. Obviously the Icon path might be different for your user. [Desktop Entry] Name=YAAC Exec=/usr/bin/java -jar /home/k5cg/YAAC/YAAC.jar Comment= Terminal=false Icon=/home/k5cg/YAAC/images/yaaclogo64.ico Type=Application The Icon on my desktop looks like this. If the path to the java executable is in your system path then you probably don't need the full path to /usr/bin/java as mine is. I noticed you have a slash after you your YAAC.jar. I don't think that should be there. That might be the cause of the error. 73 Danny, K5CG HH 550-0609 SKCC 14257 From: "Tim Huffaker" <thuffaker@...> To: "yaac-users" <[email protected]> Sent: Wednesday, June 12, 2024 10:38:48 AM Subject: Re: [yaac-users] Icon of YAAC on Raspberry Pi Desktop Hello All, I found this discussion and I am trying to get an Icon of YAAC on my Raspberry Pi desktop. ?I do not what is stopping my Icon from working. ? My desktop file [Desktop Entry] Name=YAAC Exec=java -jar /home/pi/YAAC/YAAC.jar/ Icon=/home/pi/YAAC/images/yaaclogo64.ico TerminalS=false Type=Application Categories=HamRadio The error I am getting looks like some type of permission. ? Invalid desktop entry file'/home/pi/Desktop?yaac64.desktop' I want to get this working and I do not know how to clear the error.? Tim? KM4ESU |
Easiest way is to open a Terminal window (lxterm or whatever you have installed on your system), then type the command:
java -version If that prints out 2 or 3 lines of version information, you have a working Java runtime. If you get an error message "java: command not found" or something of that ilk, then you haven't installed Java, and you need to execute the command sudo apt-get install default-jre Hope this helps. Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of Tim Huffaker <thuffaker@...> Sent: Wednesday, June 12, 2024 2:10 PM To: [email protected] Subject: Re: [yaac-users] Icon of YAAC on Raspberry Pi Desktop [Edited Message Follows] Danny, looking at yours and now i am beginning to think I do not have Java installed. Please let me know how to test for Java and if I do not what version I need to install. |
On Wed, Jun 12, 2024 at 11:22 AM, Andrew P. wrote:
sudo apt-get install default-jreAndrew, I built this Raspberry Pi for NODE RED and that works but I guess I forgot to install Java. ? The install fixed the problem and my Icon is working.? Thank you as always. ? PS this one stays at the QTH my other 3 are digipeaters for the bike ride in the fall. ? Tim? KM4ESU |
to navigate to use esc to dismiss