I compiled and installed DeSmuME and added a .desktop file so it appears in slingshot.
Now i want to add the DeSmuME icon to the file so it looks nice. How do i do this? Where does the “Ic tag in a .desktop file point to?
Here is the file I created:
Comment=A Nintendo DS emulator
You have some options, depending on what you want to do. If you want to edit the .desktop file itself, add the “Icon” key and follow it with the name of an icon in your icon theme -or- give an absolute path to a specific image. So in your .desktop file you have “Name=DeSmuMe” so under that insert “Icalacarte”. It may show up as “Main Menu”. That’s going to provide you with a GUI where you can add, edit, hide and remove application shortcuts in Slingshot. And that includes changing icons.
Only thing is, alacarte by default edits the Gnome menu, not the Slingshot menu. So if you go this route and install alacarte, you’ll want to do this after. Open a terminal and type the following.
sudo scratch-text-editor /usr/share/alacarte/Alacarte/MenuEditor.py
Search for the text “applications.menu”. It’ll show up twice in the file. Replace it with “pantheon-applications.menu”. That’s it. Just close Scratch. Now you can open up alacarte (aka Main Menu) and edit to your heart’s content.
For the record I shoved “Main Menu” into my System Tools menu and renamed it “Slingshot Menu Editor”.
Hope this helps.Toggle Comments