How to associate an icon with a shell script?

Posted by Peter on Ask Ubuntu See other posts from Ask Ubuntu or by Peter
Published on 2012-01-28T09:30:49Z Indexed on 2012/07/06 3:24 UTC
Read the original article Hit count: 236

Filed under:

Environment: Ubuntu 11.10

I have a Java application as a jar file. I have created a batch file that contains the following line:

java -jar ~/MyApp.jar

When I execute this batch file, the Java application works as expected.

To create a desktop link, I copied this batch file into my "Desktop" folder. This results in an icon appearing on the desktop. However, the icon shows "Java" on it. I would like to associate a different icon to this desktop link. Would appreciate it if someone can point me in the right direction.

© Ask Ubuntu or respective owner

Related posts about Icons