View Full Version : Adding a command to menu using terminal
June 11th, 2009, 01:22 PM
Hey everybody, I am wondering if it is possible to add a command to the applications menu using terminal. More specifically, I would like to add the command
as an application in the Games sub menu. I am doing this because I am trying to make a .sh file to download and install a game called fofix. It's based on the instructions to download and install from source, but they didn't explain how to run the program and they didn't add it to the menu, so I thought I would try to help out. I have attached what I have done so far with the .sh.
June 11th, 2009, 02:42 PM
why not just use the simpliest GUI way
> system >Preferences > main menu > games > new item >browse to the program or add the command..
June 11th, 2009, 02:52 PM
I would, but I am trying to get it to happen within the terminal because I am going to put it in a .sh file. The end result should be a .sh file that will download the program, install it and add it to the menu, so from the users viewpoint, it would be almost as good as a .deb file, which I am unable to make.
Thanks for the input.
June 11th, 2009, 03:43 PM
Create a .desktop file and install it with deskop-file-install yourapp.desktop. Take a look in /usr/share/applications/ if you want to see how .desktop files look.
Why are you unable to make a deb?
June 12th, 2009, 03:56 AM
.desktop files are probably the best way. You can easily set the category, icon, etc.
I also suggest using .deb instead. .deb files are actually very easy to make, and once you learn how it's not a problem and you'll wonder why you waited so long to figure it out.
June 12th, 2009, 04:26 AM
Thanks everybody. You have been a big help! I think I am going to go with a .desktop file for now. I simply can't figure out how to make .deb files, but if there is a simple and complete tutorial somewhere, I would love to learn.
June 12th, 2009, 05:06 AM
There are a few good ones out there. I learned it from the Debian documentation, and I felt it was well written and easy to follow.
I recently saw a sticky in the programming section of the forums here, although I haven't actually read through it.
August 28th, 2010, 08:21 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.