Author Topic: Saving my Editor settings can't be saved  (Read 4056 times)

Offline amirteymuri

  • Single posting newcomer
  • *
  • Posts: 4
Saving my Editor settings can't be saved
« on: July 21, 2016, 12:00:37 am »
Hello codeblocks users,

i have problems with saving my editor settings. Example: i change in Environment>Terminal to a gnome-terminal (because x-terminal font is too small) and also the color-themes, but each time i close codeblocks and open it all settings have been set to their defaults again!
How can i save these for ever?

Can any one help?

Offline blauzahn

  • Almost regular
  • **
  • Posts: 153
Re: Saving my Editor settings can't be saved
« Reply #1 on: July 21, 2016, 07:39:30 am »
OS? cb-version? etc.

A wild guess: Maybe you have no permission to write the config file (~/.config/codeblocks/default.ini)
or the directory containing it.

Did you start codeblocks as superuser before?

Offline amirteymuri

  • Single posting newcomer
  • *
  • Posts: 4
Re: Saving my Editor settings can't be saved
« Reply #2 on: July 21, 2016, 11:03:34 am »
OS: Debian 8, Jessie
Codeblocks version: 16.01

I also can't find any default.ini files in ~./config/codeblocks.

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: Saving my Editor settings can't be saved
« Reply #3 on: July 21, 2016, 06:13:36 pm »
try running codeblocks from your terminal to see debug messages. Also if you open several codeblocks, the last one closing will override previous modifications, make sure you have only one instance running when modyfing your config. Then restart cb

Offline blauzahn

  • Almost regular
  • **
  • Posts: 153
Re: Saving my Editor settings can't be saved
« Reply #4 on: July 21, 2016, 07:07:30 pm »
The directory is:

Code
~/.config/codeblocks

and not:

Code
~./config/codeblocks

Offline amirteymuri

  • Single posting newcomer
  • *
  • Posts: 4
Re: Saving my Editor settings can't be saved
« Reply #5 on: July 26, 2016, 12:07:27 am »
Inside the directory ~./config/codeblocks there is a file default.config but no default.ini, are these the same?
And yes this file could only be changed as sudo. If i run codeblocks as sudo everytime my settings are saved, but if i run codeblocks without sudo the default settings are shown. Is there not a way to just simply change settings (such as themes and the running terminal) and have these back every time i run codeblcks?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Saving my Editor settings can't be saved
« Reply #6 on: July 26, 2016, 12:18:18 am »
Make sure you have access to your  config-folder.

Do not run Code::Blocks (or any other program) with sudo unless you know exactly what you do.

If you run Code::Blocks with sudo, you run it as root and the settings are taken from and saved to "/root/.config/codeblocks".

Make sure that "~/.config/codeblocks" and all containing files are owned by you and a groupyou belong to (normally a group with the same name as the user).