Page 1 of 1

Which icon gives best result for Servoy Windows Shortcut ?

PostPosted: Tue Mar 24, 2015 11:28 pm
by Bernd.N
According to this thread, one has to set "servoy.branding.webstart.loadinglogo" to provide an own icon for the windows shortcut that Servoy creates when a user runs a smart client the first time:
viewtopic.php?f=5&t=17438&p=94260&hilit=icon#p94260

As Windows 7 shows the best results with 256x256 Icons, I asked a fiverr artist to create a 256x256-ICO-file for me. That file I provided into "servoy.branding.webstart.loadinglogo".
However that ICO-file Servoy did not take.
I then provided a 256x256-PNG-Icon, and that was somehow converted/downsized and did not show sharp.
(To force Java to create the shortcut new, it is necessary to go to Java Control Panel and delete the temporary Java Files there, a sole deletion of the shortcut on the desktop will not force Java/Servoy to create a new shortcut.)

So my question is, with what file type and resolution do I get the best result for the creation of the windows shortcut icon under the current Windows 7 OS?

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Tue Mar 24, 2015 11:31 pm
by Bernd.N
Hups, I just saw that was answered already by Harjo here:
viewtopic.php?f=5&t=19558

So I just send my users the proper icon now and ask them to change it manually on the shortcut, works too.

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Wed Mar 25, 2015 10:18 am
by Bernd.N
Bernd.N wrote:So I just send my users the proper icon now and ask them to change it manually on the shortcut, works too.

Unfortunately, this seems not to work, as Java puts its own icon back to the shortcut as soon as I start the app again.

Did someone else find a better solution to present proper icons to the users?

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Wed Mar 25, 2015 1:35 pm
by Harjo
As I said in that post, there is not much you can do about it!

viewtopic.php?f=5&t=19558#p111794

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Thu Mar 26, 2015 8:20 pm
by HEKUCH
Hi,

We use this solution :
- on our applicationserver we have disabled the option to create Icons.
- we build a small EXE-louncher to start the application on windows-PC.
- in this EXE-Louncher you can embed your own Image

On "www.f2ko.de" you'l find a small tool to compile a exe from a windows-bat-file:

Content of bat-file:

@echo off
javaws http://srvservoy02:8080/servoy-client/MES.jnlp

best regards

Hendrick Kurland
DataBit GmbH
Swizerland

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Thu Mar 26, 2015 11:45 pm
by Bernd.N
Thanks for sharing! :)

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Tue Mar 31, 2015 9:16 am
by LXS
Thanks Hendrick! I'll have a look on it! :)

Do you have also Mac customers?

Re: Which icon gives best result for Servoy Windows Shortcut

PostPosted: Mon Mar 06, 2017 11:32 am
by patrick
Just had to do this on a Mac. In short, what I did was

- create a shell script (test.sh) with this code

Code: Select all
#!/bin/sh

javaws http://server:8080/servoy-client/solution.jnlp


- make it executable

Code: Select all
sudo chmod +x /pathto/folder/test.sh


- from that, you can create a .app to make it double clickable

either create a .app folder with the appropriate /Contents/MacOS content or simply use something like this: https://mathiasbynens.be/notes/shell-script-mac-apps