Pangaea666: I have a question about a small issue I have on Linux. Is there an easy way to make shortcuts for the menu? For instance, I have a shortcut on my desktop that starts up The Witcher (it's a .sh file, from adamhm's excellent script). But I'd also like to have it in the menu, under Games.
I've done a little research and can probably do it manually, in addition to the menu editor, but is there a fast way to do this, like copying the shortcut I already have somewhere? I hoped it was possible to just drag it to the menu, but it doesn't work.
You might have to tweak the contents of the
.desktop file slightly to put it where you want it (I suspect the one on the desktop may not have a line containing
Categories=Game;ActionGame;RolePlaying to put it into the right folder).
Once it's tweaked, you should just be able to copy it into
/home/YOUR_USERNAME/.local/share/applications/ and then do whatever causes your specific desktop to re-scan those files. (On my desktop, just waiting a second or two and then opening the launcher menu will do it.)
For future reference:
1. The valid category tags are listed in the
Registered Categories section of the XDG desktop menu spec
2. Everything else you see when you open up one of those
.desktop files in a text editor is explained in the
Recognized desktop entry keys section of the XDG Desktop Entry spec.
3. If you want to do something fancier (like installing a custom icon, creating a new submenu, or adding a new filetype association, look into the
xdg-... commands (eg. xdg-desktop-menu, xdg-icon-resource, xdg-mime, etc.) from the xdg-utils package. (Here's the
xdg-utils website with the online documentation.)