Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-09-2007, 05:45 PM   #1 (permalink)
Proud to be Linux
 
abhinandh's Avatar
 
Join Date: Jun 2006
Posts: 458
Default create a desktop shortcut for a script

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.
__________________
http://abhinandh.com
abhinandh is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-09-2007, 05:55 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,657
Default Re: create a desktop shortcut for a script

Check this image guide below for doing it in GNOME



You need to give the entire path to the script, that is, "/usr/local/games/cube/cube_unix".
QwertyManiac is offline  
Old 30-09-2007, 06:06 PM   #3 (permalink)
Proud to be Linux
 
abhinandh's Avatar
 
Join Date: Jun 2006
Posts: 458
Default Re: create a desktop shortcut for a script

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??
__________________
http://abhinandh.com
abhinandh is offline  
Old 30-09-2007, 07:31 PM   #4 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,657
Default Re: create a desktop shortcut for a script

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?
QwertyManiac is offline  
Old 30-09-2007, 09:24 PM   #5 (permalink)
Proud to be Linux
 
abhinandh's Avatar
 
Join Date: Jun 2006
Posts: 458
Default Re: create a desktop shortcut for a script

thank u.script running good.
__________________
http://abhinandh.com
abhinandh is offline  
Old 01-10-2007, 02:11 AM   #6 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,657
Default Re: create a desktop shortcut for a script

I should have taken that 'cd' more seriously at first itself, apologies
QwertyManiac is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a Filp3D Shortcut on your desktop. anandk Tutorials 12 17-02-2008 08:01 PM
Create a list of MS Word Shortcut keys pillainp Tutorials 4 31-07-2007 09:09 AM
create a shutdown/restart shortcut on your desktop ! anandk Tutorials 14 03-04-2006 05:37 PM
cant create shortcut on desktop... kamikaze Software Q&A 6 29-01-2006 07:36 AM
Help with desktop shortcut command.... h_kunte QnA (read only) 1 09-01-2006 09:59 PM


All times are GMT +5.5. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2