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 )
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 , 15 years ago
comment:2 by , 15 years ago
System.getenv() should work here. But -Xmx400m is different again, not sure about that.
comment:3 by , 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 , 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.



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