User forums > Help

Portability

(1/5) > >>

guigz:
Is there a way to ask codeblock to write all his config settings in a file in win32 and not in the registry?

I'd like to have a portable IDE to put it on an USB key to develop with the same environment on any PC I'll be on...

Thanks

Ceniza:
The good thing is Code::Blocks is not using the registry anymore (this change was made a long time ago), even though I have my doubts the place for this file can be changed without modifying the source code. This could then sound like a feature request, and should be easy to implement.

The file is named default.conf. If you want to know where it's saved try searching in the forums (it has been said many times for the different platforms).

thomas:

--- Quote from: guigz on May 03, 2006, 04:42:25 am ---Is there a way to ask codeblock to write all his config settings in a file in win32 and not in the registry?
--- End quote ---
You're obviously using the RC2 version (or else you would not be asking). Sorry, but the answer is no. Although RC2 has a plugin to export settings, it never worked.
In fact, it is even worse than that. You will lose your settings when switching to a newer version. However, the good news is that it is worth it.

The current version of Code::Blocks saves its settings to an XML file which has the same name as your current profile (by default, that is "default", but you can launch Code::Blocks with --profile=anyname).

The file is always saved in the "correct" place depending on the operating system. For Linux/Unix, that is ~/.codeblocks, and for Windows, that is the location of the application data shell variable (in a "normal" setting, if there is such thing, something like C:\Documents and Settings\YourName\Application Data. Some older Windows version bury app data somewhere deep inside the Windows folder, and the user can also configure it to be in an arbitrary place).

Contrarily, the application loads its settings from a diversity of places. If it can find settings in the application data folder, it will use these, but if there are none, it will for example also search in the folder where the application is installed.
This was done so you can copy the application as well as your preferred settings onto a removable (possibly read-only) disk together with custom settings that you wish to use.

guigz:
I use the RC2..

Code::Blocks creates entries in my registry (HKEY_CURRENT_USER\Software)/
It also create a directory in my userprofile dir.

What I want is something more simple:1 config file in the same directory of the Code::Block exe.

MortenMacFly:

--- Quote from: guigz on May 03, 2006, 09:46:19 am ---What I want is something more simple:1 config file in the same directory of the Code::Block exe.

--- End quote ---
This is already implemented in current SVN head. C::B supports (a) config file(s) in the user profile (application data) folder and a config file in the path of C::B. I suggest you update to one of the nightlies and you're done. ;-)
With regards, Morten.

Navigation

[0] Message Index

[#] Next page

Go to full version