Page 1 of 1

How to make menu item from shell script

Posted: Thu Feb 21, 2013 2:17 pm
by darkling3100
I've recently installed Cube 2 and a few other games. I've succesfully made "Main Menu" items for all but Cube 2. The current command on the item is "/home/me/.sauerbraten/sauerbraten_unix.sh". This has worked for both Erebus and Assult Cube. I am beyond frustrated and if someone could help me out so that I can just open the game from the menu instead of having to navigate to the location it would be greatly appreciated.

OS: Linux Mint 14 Cinnamon

Re: How to make menu item from shell script

Posted: Thu Feb 21, 2013 6:53 pm
by unheeding
You need to create a .desktop file in /usr/share/applications

I made one today for irssi, here's what it looks like:

Code: Select all

[Desktop Entry]
Name=irssi
Comment=Chat on IRC
Exec=terminator --profile irssi -T irssi -e irssi
Icon=utilities-terminal
Type=Application
Terminal=false
Categories=Network;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
As you can see, it executes "terminator --profile irssi -T irssi -e irssi" - change that line to whatever your script is (you might have to do "sh /path/to/script.sh". Give it a good icon (it searches icons in /usr/share/icons/YOURTHEME) and a good name and comment, and probably change the Categories to "Games". Should work for you.