Results 1 to 8 of 8

Thread: Adding a command to menu using terminal

  1. #1
    Join Date
    Oct 2006
    Location
    Grand Haven, MI
    Beans
    157
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question Adding a command to menu using terminal

    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
    Code:
    '/usr/local/games/fofix/FretsOnFire'
    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.


    Thanks,
    Lexen
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2008
    Location
    Area 36 /lilongwe
    Beans
    Hidden!

    Re: Adding a command to menu using terminal

    why not just use the simpliest GUI way
    goto:

    > system >Preferences > main menu > games > new item >browse to the program or add the command..

    viola

  3. #3
    Join Date
    Oct 2006
    Location
    Grand Haven, MI
    Beans
    157
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding a command to menu using terminal

    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.

  4. #4
    Join Date
    Mar 2007
    Location
    Linköping, Sweden
    Beans
    Hidden!

    Re: Adding a command to menu using terminal

    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?

  5. #5
    Join Date
    Jan 2008
    Location
    USA.
    Beans
    131
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Adding a command to menu using terminal

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

  6. #6
    Join Date
    Oct 2006
    Location
    Grand Haven, MI
    Beans
    157
    Distro
    Ubuntu 11.04 Natty Narwhal

    Talking Re: Adding a command to menu using terminal

    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.

  7. #7
    Join Date
    Jan 2008
    Location
    USA.
    Beans
    131
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Adding a command to menu using terminal

    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.

  8. #8
    Join Date
    Apr 2010
    Beans
    93
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a command to menu using terminal

    It is strange that everyone's signature doesn't contain an actual signature.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •