Saturday, July 10, 2010

How to create a launcher for programs that require a terminal command in Ubuntu

Have you ever encountered a zipped program for Ubuntu that requires a command to be entered in a terminal? And when you create a launcher with that command it never start. Then here's a tutorial for you.
  • Right click Applications menu bar ->Edit Menus
  • The Main Menu dialog box should open

  • In the Menus panel select the folder of the application
  • Click on the any item in the Items panel 
  • Click the +New Item button
  • The Launcher Properties dialog box should appear

  • Type the Name of the application
  • Then in the Command text box enter the following:

gnome-terminal --working-directory=[directory] -e [command] 



gnome-terminal gnome-terminal --working-directory=/home/matangdilis/programs/opensim/opensim-0.6.9-binaries/bin -e 'mono /home/matangdilis/programs/opensim/opensim-0.6.9-binaries/bin/OpenSim.exe'


game editor

gnome-terminal --working-directory=/home/matangdilis/programs/eAdventure-v1.0-RC1-Multiplatform-English/ -e  /home/matangdilis/programs/eAdventure-v1.0-RC1-Multiplatform-English/

game engine

gnome-terminal --working-directory=/home/matangdilis/programs/eAdventure-v1.0-RC1-Multiplatform-English/ -e '/home/matangdilis/programs/eAdventure-v1.0-RC1-Multiplatform-English/'

Close the dialog boxes and click on your new menu item to run your application. Enjoy.

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.