You are not logged in.

#1 2021-11-18 18:27:20

TD8WbsJi
New Member
Registered: 2021-11-18
Posts: 2

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:
  <property name="java.net.useSystemProxies" value="true"/>

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
  <tag key='proxy.policy' value='use-system-settings'/>
Can i somehow force such settings from commandline / from jnlp?

Thanks in advance.

Offline

#2 2021-11-19 03:10:05

skyper
Member
Registered: 2020-06-08
Posts: 505

Re: JOSM: Auto-Select Default-Systemproxy Settings

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

Offline

#3 2021-11-19 08:13:22

TD8WbsJi
New Member
Registered: 2021-11-18
Posts: 2

Re: JOSM: Auto-Select Default-Systemproxy Settings

Thank you!

How could i not find this.. roll

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>

Offline

Board footer

Powered by FluxBB