LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-24-2004, 06:59 AM   #1
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Rep: Reputation: 15
Creating a desktop icon for Azureus


As it's a shell script it won't open by just pointing the link at it.
When I try the link "in terminal" it shows up for a few seconds then disappears.
I can start Azureus no problem from the cli no problem.



Scorpio.
 
Old 05-24-2004, 08:24 AM   #2
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi Scorpio,
select "Create New -> File -> Link to application" in kde and in the Application tab add "sh /path/to/script" to the string in the line labeled Command:.

Should do the trick, good luck,
- drowstar
 
Old 05-24-2004, 08:34 AM   #3
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
Still no joy
 
Old 05-24-2004, 08:42 AM   #4
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi Scorpio,
do you call the script with an absolute file name? If not, try adding the full path.
Also, try using the very same command on the command line and look out for any errors. If there are any, post them here, please.

good luck,
- drowstar
 
Old 05-24-2004, 08:46 AM   #5
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
I've tried using the full path including the .sh at the end and everything.
I don't get any errors because when I start a terminal in the directory and call up ./azureus it starts up fine.

 
Old 05-24-2004, 08:59 AM   #6
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
I've tried using the full path including the .sh at the end and everything.
I don't get any errors because when I start a terminal in the directory and call up ./azureus it starts up fine.

I am confused: "./azureus" does not contain any .sh at the end? are you sure you are calling the correct command at all? ./azureus executes an executable called azureus (and nothing more and nothing less) in the current directory.

Hope this gets you on the right track,
- drowstar
 
Old 05-24-2004, 09:01 AM   #7
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
When I mouse over the file it tell's me it's a shell script.
But it indeed hasn't got the .sh file ext.
But still won't open when calling without the .sh.


Thanks for the help btw.
 
Old 05-24-2004, 09:04 AM   #8
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Have you tried dragging the file on the desktop and choosing "link here" in the menu that pops up when you release it?
Works for me. But then the other ways worked also

Good luck,
- drowstar
 
Old 05-24-2004, 09:12 AM   #9
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
It asks me what to open the file with ?
When I choose a terminal nothing happens.
 
Old 05-24-2004, 09:15 AM   #10
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Sounds like you got the wrong file. Check if there is an executable (probably called azureus) in the path (there has got to be at least one). Try the dragging trick with that.
Good luck,
- drowstar
 
Old 05-24-2004, 09:33 AM   #11
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
It dosn't do anything because it has to be run from a terminal.
 
Old 05-24-2004, 09:53 AM   #12
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Scorpio,
I was wrong about this being the wrong file. It probably was the right one in the first place. However, I cannot imagine, why it would not work adding the command sh before the path to the script. (the thing we tried first)
By the way: Are you certain, you added sh before the path to the script? This thought just occured to me, when I was going over the steps we have tried (I am wondering, because your idea of adding ".sh" came up right after that).

It dosn't do anything because it has to be run from a terminal
Does it say, it cannot be launched from the Desktop? Else, how did you come to this conclusion?

Anyways, if this does not work, I had a look at the azureus website:
Quote:
If Azureus does not show up after a minute, you can try starting it manually:
GTK:
java -cp swt.jar:swt-pi.jar:systray4j.jar:Azureus2.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main
Try using this command in "link to application" instead of the link to the azureus script file.

Good luck,
- drowstar

ps: I have no clue why it wont work the usual way, however. You can ICQ or Jabber me (see my profile) if you would like to work this out in a more direct way.
 
Old 05-24-2004, 09:58 AM   #13
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Sorry, there is no jabber id on the profile. Anyways, it's drow at jabber dot org
 
Old 05-24-2004, 10:05 AM   #14
Scorpio
Member
 
Registered: May 2004
Distribution: Ubuntu Warty
Posts: 61

Original Poster
Rep: Reputation: 15
That command didn't work either.
I tried adding sh to the start of the other command but to no avail.

Unable to use Jabber at the minute.

It can't run from the desktop because when I drag the file over and it links it, the new shortcut dosn't give the option to run in a terminal.

Here's what it says in the readme
Quote:
3. Start Azureus by running the script named 'azureus'; ex. "./azureus"
 
Old 05-24-2004, 10:18 AM   #15
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Scorpio,
azureus is a java bit torrent client, right? and it uses a graphical user interface, right again? (These are real questions)
If I am correct about the above, you dont need to launch it in a terminal as long as it is correctly interpreted (i.e. the program sh (or bash, ...) is called to interpret the file).

There is another idea: what happens, when you click on the file named azureus in the directory (not a link, the real thing)?
Open with dialog? make sure it is executable for the user:
try this in the terminal:
ls -lx azureus
if azureus is listed, everything should be fine (damn!)
else:
chown <user>:users * -R
where <user> is your username
chmod u+rx azureus

Hope this fixes it!
- drowstar
 
  


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
creating desktop icon oingram Linux - Software 6 12-31-2004 04:39 AM
Creating a Javascript Desktop Icon gothrog Linux - Software 2 10-14-2004 06:15 PM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 07:39 PM
Creating Desktop Icon biggiefatts Linux - Software 4 05-27-2002 01:46 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 12:26 PM


All times are GMT -5. The time now is 10:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration