How to make menu item from shell script

Please post suggestions for improvement of Cinnamon here
Level 1
Level 1
Posts: 1
Joined: Thu Feb 21, 2013 1:50 pm

How to make menu item from shell script

Postby darkling3100 » 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/". 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

Level 1
Level 1
Posts: 10
Joined: Tue Feb 19, 2013 7:09 pm

Re: How to make menu item from shell script

Postby unheeding » 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]
Comment=Chat on IRC
Exec=terminator --profile irssi -T irssi -e irssi

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/". 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.

Return to “Cinnamon”

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests