Add options to set the user/cache dirs#9724
Add options to set the user/cache dirs#9724RossBrunton wants to merge 1 commit intoCard-Forge:masterfrom
Conversation
|
hmn what's the point? |
|
I'm perhaps blind, but I can't see any documentation about a preferences file nor do I see a preferences file in the published build. There's preferences information in the user dir, but that means that the user dir can't be relocated. |
|
it's right above the point in the guide you've edited |
|
Had another look at this and it does look like that file can change the user data dir. For some reason I thought that file actually lived in the user dir and only controlled where the card images where stored. Sorry about that. However, the properties file does have a few limitations:
With these two issues, I still think it makes sense to allow the user to override the locations using environment variables. |
This adds two new environment variables,
FORGE_USER_DIRandFORGE_CACHE_DIRfor overriding the default locations for user data.For example, forge can be ran using:
To use alternate directories.
There should be no change in behaviour when neither of these vars are set.