Enhancement #2772

Uniformed path for System-Config in Windows

Added by S. Barut over 5 years ago. Updated over 5 years ago.

Status:NewStart date:10/09/2018
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Configuration
Target version:-

Description

Currently, the path where the system-wide rsb.conf lies is not specified under windows. (see: http://docs.cor-lab.org/rsb-manual/trunk/html/specification-config.html#effective-configuration ; PREFIX is not clearly defined).

Some proposals would be:

- C:\rsb.conf
Straightforward but maybe too messy and not clear enough...

- C:\Users\Public\.config\rsb.conf
Would have a userprofile\.config\rsb.conf design, but beeing effective for every user (Public) making it system-wide

It is more or less a proposal derived from:
https://blogs.msdn.microsoft.com/patricka/2010/03/18/where-should-i-store-my-data-and-configuration-files-if-i-target-multiple-os-versions/

Actually "C:\Users\Public" is only intended for documents but with the ".config" subdirectory it should be a nice and clear like in the home directory.

History

#1 Updated by J. Wienke over 5 years ago

Is the .config prefix used on windows normally for the user configuration?

#2 Updated by S. Barut over 5 years ago

Nope, the preferred path is %USERPROFILE%\AppData\Local\<MyCompany>\<MyApp> (see the link above)
Honestly, the only applications using .config in my local system are gitk, npm and rsb...
But I thought it was decided to use USERPROFILE\.config since it is the currently used directory and a change would imply adjustments on productive systems.

However, if we want to decide to use the usual win way, we would have to choose something like:

For system-wide config:
- C:\ProgramData\CoR-Lab\RSB\rsb.conf

For user config:
- %USERPROFILE%\AppData\Local\CoR-Lab\RSB\rsb.conf

Maybe the Roaming folder would be better than Local, as the configs get synchronized when a server is used to login.

Also available in: Atom PDF