Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
New switch --user-config
dmoore:
Attached is a patch that adds support for specifying the user data directory:
--- Code: ---codeblocks --user-config=/home/myusername/.codeblocks-XXX
--- End code ---
will set the user-config in /home/myusername/.codeblocks-XXX instead of the default (on Linux) of /home/myusername/.codeblocks
Useful for when you have multiple C::B versions that you want to keep totally isolated. (E.g. they might have different, incompatible user plugins installed)
Not thoroughly tested yet so there will be updates. (Also probably need to do a check to make sure the destination is writeable and abort if not.)
PS: Wasn't sure whether to call this user-config or user-data. wx confusingly refers to user-config as the home folder. Thoughts?
ollydbg:
--- Quote from: dmoore on January 20, 2014, 03:33:58 pm ---...
Useful for when you have multiple C::B versions that you want to keep totally isolated. (E.g. they might have different, incompatible user plugins installed)
...
--- End quote ---
Why not use the -p option which specify a different user profile file? (I think using different user profile is enough, no need to specify a different user profile directory, but I may be wrong)
dmoore:
Plugins and other crap in the user data dir will cause some very surprising results if you run an incompatible CB version! (Crashes, completely borked UI etc). profiles don't take care of this.
MortenMacFly:
...nice idea, indeed.
MortenMacFly:
--- Quote from: dmoore on January 20, 2014, 03:33:58 pm ---Thoughts?
--- End quote ---
I had a quick look into. Is there a reason why you bind this functionality on CfgMgrBldr instead of ConfigManager as it is done with all the other path's? Its weird to find this method in the builder pattern... (see, how --prefix is handled...)
Navigation
[0] Message Index
[#] Next page
Go to full version