Author Topic: How to preserve my settings on Ubuntu?  (Read 10145 times)

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
How to preserve my settings on Ubuntu?
« on: May 30, 2011, 03:34:42 am »
Hello,

I am using some custom editor settings such as colors, and custom shortcuts, what is the file that codeblocks keeps those settings in?

I'd like to save that file so I can easily restore those settings next time I reinstall Ubuntu.

THX!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to preserve my settings on Ubuntu?
« Reply #1 on: May 30, 2011, 05:38:39 am »
I'd like to save that file so I can easily restore those settings next time I reinstall Ubuntu.
Watch out for a file named default.conf, usually located in your HOME directory in the sub-folder .codeblocks.

Notice you can use cb_share_config tool to save / transfer some settings (not all).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: How to preserve my settings on Ubuntu?
« Reply #2 on: May 30, 2011, 04:14:39 pm »
Thank you for the reply.

In the folder I found cbKeyBinder10.ini which was correctly last modified today, it contains my shortcuts.

Unfortunately, default.conf was modified on May 15, that's when I installed codeblocks. I am afraid it does not contain my color settings.

I did search on all files that were modified on 2011-05-30 but I got 10K+ files, I do not think I can find the right one among them.

Is there any other config file that codeblocks uses to save color settings? I made the changes directly to default scheme.

Thanks again!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to preserve my settings on Ubuntu?
« Reply #3 on: May 30, 2011, 08:33:04 pm »
Is there any other config file that codeblocks uses to save color settings? I made the changes directly to default scheme.
No. However, if you installed a portable version it might also be in the application folder. Hence it will always be called "default.conf" which you can search for.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: How to preserve my settings on Ubuntu?
« Reply #4 on: May 30, 2011, 10:26:59 pm »
That was correct default.config. The file was updated only after I closed codeblocks. Weird. I would expect the changes to be populated as soon as I click Ok on config editor dialog box.

Anyways, thank you for your help!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to preserve my settings on Ubuntu?
« Reply #5 on: May 31, 2011, 10:57:12 am »
I would expect the changes to be populated as soon as I click Ok on config editor dialog box.
The settings are persisted when you close C::B. During run-time (for speed-up) they are buffered in memory, so all read/write operations are in memory only, until you close C::B.

Although this may be debatable, it has been like that for a long time.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ