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 |
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?) |
All times are GMT -5. The time now is 11:12 PM. |