Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: killerbot on February 27, 2006, 01:21:09 pm

Title: User Templates (READ THIS !!!)
Post by: killerbot on February 27, 2006, 01:21:09 pm
For exmple on windows the user templates were save in a non consistent place. They were saved in : <DocumentAndSettings>\<User>\.CodeBlocks. Now they are save at the sample place where CB saves it's other configuration settings :
<DocumentAndSettings>\<User>\ApplicationData\CodeBlocks, and more specifically in a subdir :
<DocumentAndSettings>\<User>\ApplicationData\CodeBlocks\UserTemplates . Be sure to copy all your user templates to this new directory (if the UserTemplates does not exist yet, very likely, create it yourself ; UserTemplates).
From revision 2087 on.

kind regards,
Lieven
Title: Re: User Templates (READ THIS !!!)
Post by: takeshimiya on February 27, 2006, 01:40:19 pm
Good, it was an inconsistency.
It is ApplicationData\CodeBlocks or ApplicationData\codeblocks ? I know that Windows is case-insensitive, but I'm wondering what's the "official".
Title: Re: User Templates (READ THIS !!!)
Post by: mandrav on February 27, 2006, 02:25:31 pm
Quote
It is ApplicationData\CodeBlocks or ApplicationData\codeblocks ? I know that Windows is case-insensitive, but I'm wondering what's the "official".

This path is returned from ConfigManager::GetConfigFolder(). It returns the correct path based on the platform, among others.
So, any one of those two will work (for windows).
Title: Re: User Templates (READ THIS !!!)
Post by: takeshimiya on February 27, 2006, 02:44:09 pm
So, any one of those two will work (for windows).

I know, I'm asking what's the "official" one (you know, for WiKi articles, etc).
Title: Re: User Templates (READ THIS !!!)
Post by: mandrav on February 27, 2006, 02:58:04 pm
So, any one of those two will work (for windows).

I know, I'm asking what's the "official" one (you know, for WiKi articles, etc).

Well, ConfigManager::GetConfigFolder() returns "...\codeblocks" so that should be it ;)