User forums > Using Code::Blocks
Can I make C::B portable?
Pecan:
DragScroll and KeyBinder get their conf directory with the following.
--- Code: --- //memorize the key file name as {%HOME%}\cbKeyBinder+{vers}.ini
m_sKeyFilename = ConfigManager::GetConfigFolder();
--- End code ---
KeyBinder looks to merge dynamic menu keys to its .ini file every 15 seconds,
backs up the .ini to .ini.bak and writes the new merged .ini file.
I don't see the problem, but I can only test this after November.
Squeller:
Thanks, Pecan. The timer behaviour explains, why I wasn't easily able to reproduce it. OK. I've moved all my config files to c::b dir again; looks like it's solved... I'll test more thoroughly later the day,,,
Squeller:
Pecan, you're right. I have disabled both plugins and c::b is now fully portable without any problems afaics. I've worked 2 hrs. without a problem with it.
stahta01:
The setup of ConfigManager::GetConfigFolder() variable ConfigManager::config_folder in the method ConfigManager::InitPaths() needs work to make it portable.
Tim S
PS: I trying to write a small patch to make ConfigManager::GetConfigFolder portable right now.
Uploaded patch
[ Patch #1783 ] GetConfigFolder patch to make it work in a Portable win32
https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1783&group_id=5358
NOTE: If you are talking about this patch please mention Patch #1783 in the message.
stretchboom:
Hi.
I've tested the steps with cb_20070101_rev3446_win32 and borland's bcc55.
I extracted the file, started cb and wanted to disable DragScroll and Keyboard shortcuts plugin. After a click on disable button codeblocks crashs. Then i started it again and this time i could disable it. The same with the other plugin.
After that i copied content of %appdata%\codeblocks\ to my codeblocks folder and configured relative paths by using $(codeblocks). Now i have running a portable version. :D
Just want you to inform about the crash and give a little summary.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version