Hi,
I use jEdit on a USB drive and before version 5.0 the JVM option "-Duser.home=" did work as expected. This system property is in current version ignored and the environment variable %APPHOME% is used instead on Windows machines.
The attached patch checks first if "-Duser.home=" was specified and use the provided location otherwise %APPHOME% is used.
kind regards
Frank
fixes an issue in the initial patch
System.getProperty("user.home") works better than actually checking the command line arguments. But i will fix things up so it does check that also.
Why is it important that you are able to -Duser.home= in order to change how jEdit behaves, when jEdit has its own command line argument for this purpose?
You can achieve what you want (jEdit using a different settings directory) without patching jEdit at all, but simply using
java -jar jedit.jar -settings=/path/to/your/settingsdir