Desktop shortcuts with java application

Hi,

We have a java desktop application that is launched using java web start (launching jnlp file with jawaws). This application is used in window and mac. The application will create a shortcut on the desktop after installed successfully. We have used *.ico file for windows and *.png file on mac to create the shortcuts as show below (part of the snippet in jnlp),

<information os="Windows">
<icon href="images/appicon.ico" kind="shortcut"/>
<icon kind="splash" href="images/splash.png"/>
<shortcut online="true">
	<desktop/>
	<menu submenu="App Name"/>
</shortcut>
</information>
<information os="Mac">
<icon href="images/appicon.png" kind="shortcut"/>
<icon kind="splash" href="images/splash.png"/>
<shortcut online="true">
	<desktop/>
	<menu submenu="App Name"/>
</shortcut>
</information>

Problem is,
Windows - shortcut is created on desktop with generic icon but not our app icon.
Mac - shortcut is not created.

When we turn off the Cloudflare on our servers then shortcuts are created with proper icons on both mac and windows. Not sure what we are missing. Did any one have this issue ? Appreciate your help. Thank you.

You might have Hotlink Protection enabled. Check your Scrapeshield settings on the Cloudflare Dashboard.

1 Like

Hotlink Protection was disabled since we started using Cloudflare.

1 Like

We narrowed down the issue and had little success in showing icons in mac and windows with the png’s. But Not sure why *.ico did not work on enabling Cloudflare on our servers. Do we need to define any MIME-TYPE on cloud flare for ico to work ?