Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


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

Rep: Reputation: 0
Creating desktop link to java program


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.
Old 01-10-2006, 09:24 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,170

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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?)


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

All times are GMT -5. The time now is 10:00 AM.

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