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
How to make menu item from shell script
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to make menu item from shell script
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to make menu item from shell script
You need to create a .desktop file in /usr/share/applications
I made one today for irssi, here's what it looks like:
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.
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