Startscript for Programs who only runs over the Terminal   
 
They are some times programs and games who does not run doing a doubleclick on the program binary. Here you need to start it over a Terminal. You need to switch into the program folder and then you need to enter the program name to start it.

Here you can use a shell script to make a program starting by double click possible.

First you need to create an emty text document into the program folder. For our example we rename the text document into Startscript.sh.

Then open the text document with a editor and enter following code:

 

#!/bin/sh
 string=$(readlink -f $0)
 folder=`dirname $string`
 cd $folder
 gemdropx
getinfo english

 

We need to make the script executeable to use it. Do a right click with your mouse on the script file and select "Get Info".

Expand the window using the arrow in the bottom part of the window.

executeable english

Then do a cross at all cases of "executeable".

Now the script is executeable and you can start the program doing a doubleclick on the script file.

Tutorial by Christian Albrecht (Lelldorin) Oktober 2012
Made available by BeSly, the Haiku knowledge base.