Reusing configuration directory
已回答
Hey all,
I'm curious if there could be any issues reusing the system and config path between releases?
I have some code that manages to download and setup IntelliJ, Ive started to develop a plugin that I want to distribute to the users. In order to do this, I would create a directory (such as ~/.IntellijIdea) and point idea.system.path and idea.config.path to that directory. Than I can just download and copy the plugin to that known directory.
My biggest concern is intellij creates a unique config directory for each release so I worry that making it static may lead to upgrade issues. Is this something I should be concerned about?
Thanks in advance!
请先登录再写评论。
Hello,
If there is some issue with settings you couldn't return to previous one if the same folder is used. Also there might be issues if you try to run previous version with newer settings.
Thanks Yaroslavl,
Sounds like keeping the unique setting directory is preferred, is there any way I can programmatically determin the directory name that will be created after launch? The main issue I was trying to work around with a static folder was the folder does not get created until the user launches the application. If I could somehow determin that name before hand, I could go with a fresh folder on each upgrade.
Brian,
Default folder name is a combination of product name and version, e.g. ".IntelliJIdea2018.3"