[rfc] [icedtea-web] desktop icon is pointing to cache instead to real url

Adam Domurad adomurad at redhat.com
Wed Jan 2 07:34:07 PST 2013


On 01/02/2013 10:20 AM, Jiri Vanek wrote:
> Hi!
> During digging in desktop subsystem of ITW i found that desktop icon 
> is pointing to cache instead to url. HAve anybody idea why??? Eg it 
> will not survive -Xclearcache,..

I think this is the correct behaviour -- AFAICS this would allow it to 
work offline while pointing to the URL would not.

>
> This simple patch should fix it to point to real url instead of cached 
> version:
>
> diff -r a16da8b96a0f netx/net/sourceforge/jnlp/util/XDesktopEntry.java
> --- a/netx/net/sourceforge/jnlp/util/XDesktopEntry.java    Mon Dec 24 
> 13:58:31 2012 +0100
> +++ b/netx/net/sourceforge/jnlp/util/XDesktopEntry.java    Wed Jan 02 
> 16:17:53 2013 +0100
> @@ -93,7 +93,7 @@
>          }
>
>          //Shortcut executes the jnlp from cache and system preferred 
> java..

Just a note that this comment would need updating too

> - fileContents += "Exec=" + "javaws" + " \"" + 
> cacheFile.getAbsolutePath() + "\"\n";
> +        fileContents += "Exec=" + "javaws" + " \"" + 
> file.getSourceLocation() + "\"\n";
>
>          return new StringReader(fileContents);

Happy hacking,
-Adam



More information about the distro-pkg-dev mailing list