Opened 15 years ago

Last modified 14 years ago

#5635 closed defect

restart plugin does not preserve start options — at Version 5

Reported by: bastiK Owned by: Upliner
Priority: normal Milestone:
Component: Core restart Version:
Keywords: Cc:

Description (last modified by skyper)

When I start josm like this:

java -Djosm.home=$HOME/.josm-dev -jar dist/josm-custom.jar

The preference folder is changed to the default folder after restart.

Change History (5)

comment:1 by Upliner, 15 years ago

Does anybody know, is there a way to robustly determine launch settings like that? I haven't found one yet...

comment:2 by bastiK, 15 years ago

System.getenv() should work here. But -Xmx400m is different again, not sure about that.

comment:3 by bastiK, 15 years ago

another thing: there is an command line option --language=de. (Haven't tested if it works with your plugin)

comment:4 by Upliner, 15 years ago

OK, I can dump the whole environment to the command line, however not all options are passed through the environment. It's quite easy to handle some specific options(currently, I handle only -Xmx), but it would be nice to find out some universal way that handles all possible startup options.

comment:5 by skyper, 14 years ago

Description: modified (diff)

See also #6344.

Note: See TracTickets for help on using tickets.