LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2004, 05:56 PM   #1
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Rep: Reputation: 15
Running a script from the desktop...


I'd like to run the game "cube" from the desktop in KDE. To open cube, the program uses a script called cube_unix, which can be run from the command line with ./cube_unix. I tried to run it by linking to the script, but when I click on it nothing happens. Any suggestions?
 
Old 02-04-2004, 06:06 PM   #2
YMHiK
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 2.6.5, Slackware 2.6.4, RedHat 9 2.4.20-8
Posts: 23

Rep: Reputation: 15
Just create another script to launch 'cube'.
This script would launch another script such that ./cube_unix
And link this 'launching script' to your desctop. Hope I explained it to be understandable
 
Old 02-04-2004, 08:01 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
cube_unix is already a script that launches another script. Problem is that it's not executable straight out of the archive. So if you "chmod 700 cube_unix", and then make your link, things should be okay.
 
Old 02-04-2004, 09:31 PM   #4
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for the suggestions, but when I did the chmod 700 I still got the same result...nothing happens. I wonder if it's a problem with my KDE...i'll try it from GNOME.
 
Old 02-04-2004, 09:39 PM   #5
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
ok then, open up cube_unix in a text editor and check the CUBE_DIR variable. This may need to be changed to your cube directory. I think it's set to "." by default, which may be causing problems. Could be it's reading "." to mean your desktop? Try changing it to the full path to your cube directory.

edit: I'm pretty certain this is the trouble....I just switched it back to CUBE_DIR=. and it wouldn't work.

Last edited by mikshaw; 02-04-2004 at 09:42 PM.
 
Old 02-04-2004, 09:47 PM   #6
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Original Poster
Rep: Reputation: 15
That did the trick! I had to creat another script to open the orginal cube_unix script with the options i wanted, but once i changed the path like you said it worked like a dream! Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i see which desktop is running? mattie_linux Linux - General 1 05-31-2005 06:32 PM
Running more than 2 desktop environment? johnleeryan Linux - Newbie 5 02-17-2005 06:48 PM
what desktop am i running? naijaguy Linux - Newbie 12 08-19-2004 12:25 PM
running a csh-script from desktop with 1-click ? jdaniel Linux - General 3 10-06-2003 10:35 AM
Running program from desktop sarasf Linux - Newbie 2 08-26-2003 10:58 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration