LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2009, 12:49 AM   #1
bidalah
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Unhappy Creating launcher of executable file-Ubuntu


Hi everyone,

I am attempting to created a desktop shortcut(launcher) for the Project Alice Program. In Linux the "run-alice" link which activates the Alice Program executes a java script which references serveral local folders and files. Some of these references seem to complied into the java classes so execution MUST take place in the install directory.

So I created an executable script with the following lines:

cd /"location of run-alice"/
./run-alice

I named this script RUNALICE. Then I created a desktop shortcut to run RUNALICE.


If I open up a terminal window and activate this desktop shortcut from the command line, it works perfectly (note- I am NOT activating the shortcut from the Alice install directory. It really is doing what I want it to). BUT if I simply double click on it from the desktop nothing happens. No error, no activity, nothing.

Project Alice is a program designed to be used by children. The children we are introducing it to will not be familiar with Linux or command line programming. I really want to give them a desktop shortcut to click on.

Can anyone tell me if there is a way to do this? I am new to Linux and I have to say its a big disappointment that a simple shortcut has become such a big deal. After a seamless OS install and Alice program download, this final detail has kept me working for hours without success. Please let me know what I am missing.
 
Old 12-06-2009, 12:55 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Then I created a desktop shortcut to run RUNALICE.

... this is the part where you made the mistake then. Go back over how you did this and make sure that it is the launcher that you are clicking. But also make sure that the launcher has permission to execute the script - set script permissions to 777. Make sure the launcher executes the scrit the right way - there are three options in the launcher creation cui.
 
Old 12-06-2009, 09:25 AM   #3
bidalah
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Simon,

I did set the permissions to 777 and I tried all 3 launcher options. Again, the launcher works perfectly when I execute it manually from the terminal. It is only when I double-click it from the gui that it plays dead.
 
  


Reply



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
Creating launcher... phantom_cyph Linux - General 3 03-03-2007 04:52 PM
creating launcher jasondodd Linux - Newbie 4 03-13-2006 09:14 AM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
creating an executable file liljhand Linux - Newbie 5 01-23-2005 10:56 PM
Creating a launcher for mplayer wnaLinux Slackware 6 11-02-2004 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration