﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21689	Extra arguments for /usr/bin/josm	Crashillo	team	"According to https://josm.openstreetmap.de/wiki/Help/Preferences#Settingacommondirectory you can set a different directory to handle the https://wiki.openstreetmap.org/wiki/Import/Guidelines#Use_a_dedicated_user_account with a single line:

{{{
java -Djosm.home=JOSM-imports -jar josm.jar
}}}

Since unix wraps all the java stuff with the {{{/usr/bin/josm}}} launcher, you may think that the following code should work, but:

{{{
$ josm -Djosm.home=JOSM-imports
Using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to execute josm.
JOSM: unrecognized option '-Djosm.home'
}}}

I figured out that https://josm.openstreetmap.de/browser/josm/trunk/native/linux/tested/usr/bin/josm#L71 is the responsible for. But you can make it work just switching the ""extra arguments"" position like this:

{{{
- $JAVACMD $JAVA_OPTS -jar /usr/share/josm/josm.jar ""$@""
+ $JAVACMD $JAVA_OPTS ""$@"" -jar /usr/share/josm/josm.jar
}}}

Is there any issue about switching the {{{""$@""}}} position that I'm missing? IMO, that would simplify the things a lot, keeping the java stuff wrapped.

Thanks in advance"	defect	closed	normal		Core		wontfix		
