https://bugzilla.novell.com/show_bug.cgi?id=469332
User noelamac@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c4
--- Comment #4 from Camaleon --
--- /usr/share/applications/jarwrapper.desktop 2008-12-03 11:58:33.000000000 +0100 +++ jarwrapper.desktop 2009-01-29 15:25:45.965074080 +0100 @@ -4,8 +4,8 @@ Name=Execute Jar File GenericName=Execute Jar File Comment=Start Java Jar archives with a mouse click -MimeType=application/x-jar; -Exec=/usr/bin/jarwrapper %u +MimeType=application/x-java-archive;application/x-jar; +Exec=/usr/bin/jarwrapper %f Icon=java.png Terminal=true NoDisplay=true
Mandatory is the Exec line. The %u means - use URL, the %f (%s was a type :)) means - use a file path. The MimeType is for proper mime-type handling, because the x-jar is just alias and some desktops (for example KDE) do not use it.
Nice! Edited, tested and works well for another user. Thanks! :-) Just 2 additional notes, for your review: a) Argument "%s" also works :-P b) When using "/usr/bin/jarwrapper" I get a window terminal stating "executing java -jar /home../../file.jar" and keeps minimized after I close the program. But using "/usr/bin/java" does not launch that terminal. Which one is the right behavior? To be sincere, I don't like so much that window O:-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.