MichaelBurns
December 28th, 2010, 12:03 AM
I have successfully added a new menu item:
Applications > Games > Galaga
using a $HOME/.local/share/applications/Galaga.desktop file containing:
[Desktop Entry]
Type=Application
Version=1.0
Name=Galaga
GenericName=a single-screen space shooter
Comment=Enjoy your Galaga, Mom!
Icon=$HOME/.fceultra/icons/galaga.png
TryExec=fceu
Exec=fceu $HOME/.fceultra/roms/galaga.nes
Categories=Game;
The game runs by clicking the menu entry, as expected, but the cool little icon that I downloaded for it doesn't work. It is a 48x48 png file. I can see it as a thumbnail for itself in Thunar, and also in Image Viewer, but next to the name in the menu, where there should be the icon, it is just blank.
How do I get the icon to appear?
BTW, for anyone else trying to add a game to their Games menu, pay attention: the Categories value is Game, not Games! I figured this out finally by just looking at example .desktop files in the /usr/share/applications/ directory; I useful tip in general.
Applications > Games > Galaga
using a $HOME/.local/share/applications/Galaga.desktop file containing:
[Desktop Entry]
Type=Application
Version=1.0
Name=Galaga
GenericName=a single-screen space shooter
Comment=Enjoy your Galaga, Mom!
Icon=$HOME/.fceultra/icons/galaga.png
TryExec=fceu
Exec=fceu $HOME/.fceultra/roms/galaga.nes
Categories=Game;
The game runs by clicking the menu entry, as expected, but the cool little icon that I downloaded for it doesn't work. It is a 48x48 png file. I can see it as a thumbnail for itself in Thunar, and also in Image Viewer, but next to the name in the menu, where there should be the icon, it is just blank.
How do I get the icon to appear?
BTW, for anyone else trying to add a game to their Games menu, pay attention: the Categories value is Game, not Games! I figured this out finally by just looking at example .desktop files in the /usr/share/applications/ directory; I useful tip in general.