How to make menu item from shell script

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

How to make menu item from shell script

Postby darkling3100 on Thu Feb 21, 2013 2:17 pm

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
darkling3100
Level 1
Level 1
 
Posts: 1
Joined: Thu Feb 21, 2013 1:50 pm

Linux Mint is funded by ads and donations.
 

Re: How to make menu item from shell script

Postby unheeding on Thu Feb 21, 2013 6:53 pm

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.
unheeding
Level 1
Level 1
 
Posts: 10
Joined: Tue Feb 19, 2013 7:09 pm


Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 10 guests