syncpoint / ODIN

Open Source C2IS (Command and Control Information System)
MIT License
62 stars 20 forks source link

support an alternative value for ODIN_HOME (project related data) #242

Open ThomasHalwax opened 4 years ago

ThomasHalwax commented 4 years ago

ODIN persists all project related data in a folder that is a sub-folder of the users HOME directory. This ODIN related folder is referenced as ODIN_HOME.

In order to allow users to provide an alternative folder for ODIN's data we need a way to do so. Since this is not a common operation we will not provide a UI for this. An easy to use and easy to implement way would be using environment variables (and/or) optional configuration files.

dehmer commented 4 years ago

I'm not a big fan of applications polluting my home directory. And as a user, I don't want to choose any other arbitrary directory as ODIN_HOME. Is there a reason we cannot use 'Application Support' (and similar for Windows/Linux)? I propose to use Electron's app.getPath('appData') to store all application data including projects. This would really make the filesystem transparent for users.