create a desktop shortcut for a script

Status
Not open for further replies.

abhinandh

Proud to be Linux
how do i create a shortcut for a script, for example i have cube game installed under "/usr/local/games/cube". i need to run the script "cube_unix" from that directory.(after doing a "cd")
whats the command i need to give in the create shortcutbox.
 

QwertyManiac

Commander in Chief
Check this image guide below for doing it in GNOME

*aycu10.webshots.com/image/29089/2004131150988535036_rs.jpg

You need to give the entire path to the script, that is, "/usr/local/games/cube/cube_unix". :)
 
OP
abhinandh

abhinandh

Proud to be Linux
woooo a quick reply.but already tried that.i have to run the script from that particular folder.in terminal it gives error

exec: 42: ./bin_unix/linux_client: not found


thet folder bin_unix/linux_client is in the directory of the game


btw what window decorator r u using.is it emerald??
 

QwertyManiac

Commander in Chief
Yes it is Emerald with the default green theme and Window Reflections turned on.

Sorry that the above didn't work .. But I think you need to make a bash script file for running this.

Add this to a file named cube.sh on your desktop:
Code:
#!/bin/bash
cd /usr/bin/local/games/cube
./cube_unix
Make it executable (chmod +x cube.sh or simply do it via Properties > Permissions) and tell me if it executes well?
 
Status
Not open for further replies.
Top Bottom