JOSM: Auto-Select Default-Systemproxy Settings

Hi all,

i created a custom jnlp file to start JOSM on Windows.

I added the property to use the system proxy to the jnlp:

I expected JOSM to start and have automatically SELECTED the Default-Systemsettings.
Actually still “No-Proxy” is selected. At least the Option Default-Systemsettings is enabled. But every user has to manually change the setting on first start.

Do i need some other property to be set?

In the file C:\Users<user_name>\AppData\Roaming\JOSM\preferences.xml the setting is set as

Can i somehow force such settings from commandline / from jnlp?

Thanks in advance.

Take a look at the command line options.
I guess --set=<key>=<value> should work.

Thank you!

How could i not find this… :roll_eyes:

My solution now is:


<resources>
    <java version="1.8+" vendor="Azul" java-vm-args="..."/>
    <jar href="josm-tested.jar"/>
    <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
    <property name="java.net.useSystemProxies" value="true"/>
</resources>
<application-desc main-class="org.openstreetmap.josm.gui.MainApplication">
    <argument>--set=proxy.policy=use-system-settings</argument>
</application-desc>