LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-10-2006, 04:57 AM   #1
patricktyler
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Creating desktop link to java program


Hi,

I am trying to create a desktop link to a java program. At the moment I have to cd to the relevent directory that contains a text file that I run by typing ./myprogram. The file contains the line exec java..... I have tried creating a link to the file, but a dialog box opens up asking what program I want to open the file with...

Any help would be much appreciated.
Thanks,
Patrick
 
Old 01-10-2006, 08:24 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Create a application link, and, as the application, use sh ~/.../myprogran, or, if you're using KDE, try konsole -e ~/.../myprogram as the application. (Where, of course, ~/.../mprogram is the path to your program.)

By the way, the "konsole -e" is an easy way to run shell scripts from desktop icons. That can be quite handy at times.

(Um, for GNOMEies, is there a similar method available in GNOME?)
 
  


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 link to java program patricktyler Fedora 3 02-03-2006 05:26 AM
Running a program link from Desktop paul85 Linux - Newbie 4 08-02-2005 05:40 AM
Creating a shell script to run Java program paultaylor Programming 7 11-12-2004 03:11 PM
Creating a link to a CDROM / DDVDrom in the desktop xavierh Mandriva 11 03-31-2004 08:56 PM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 11:26 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
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