PDA

View Full Version : Starting Scripts


Twigg
November 26th, 2006, 06:15 PM
So i've just installed Ubuntu a couple of days ago, and i'm a novice when it comes to Linux. I've managed to install Wine and get a copy of Starcraft going, and to my surprise it doesn't run to bad. The problem is i'm used to icons that I can just click and run a game... All this shell command stuff is getting annoying.

So how would I go about making a script that I can just click on to open up starcraft, or any other program I want instead of having to go through a bunch of shell commands?

23meg
November 26th, 2006, 06:18 PM
You don't need a script; just create a launcher on your desktop, entering the command you use to launch the game into the Command box in the Create Launcher window.

po0f
November 26th, 2006, 06:25 PM
Twigg,

For the command, make sure to enclose the directory with quotes. Something like the following should do the trick:
wine "~/.wine/drive_c/Program Files/Starcraft/starcraft.exe"

Twigg
November 26th, 2006, 06:36 PM
Awesome that'll work for my games, but i've got other programs I like to run that take up a wad of command lines.

I use hamachi to play lan games of starcraft, warcraft 3 and so on via VPN. To run it I need to enter a bunch of command lines, and i'd like to automate that as well.

Plus I use Xlink Kai to play Xbox games via System link. So I've got to run ./kaid from the bin, and then jKaiUI.jar from my home directory. I figured having a few scripts on my desktop would make this a load easier. I'm just not sure how to go about making the scripts.

Thanks again for the help.

Engnome
November 26th, 2006, 07:18 PM
You could create a launcher that executes a bash script. Just enter the path to the bash file and don't forget to set it to be executable.

Bash script tutorials can be found through Google.

Twigg
November 26th, 2006, 08:19 PM
Right on. Thanks for the info. :)