News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Saving my Editor settings can't be saved

Started by amirteymuri, July 21, 2016, 12:00:37 AM

Previous topic - Next topic

amirteymuri

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?

blauzahn

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?

amirteymuri

OS: Debian 8, Jessie
Codeblocks version: 16.01

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

teto

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

blauzahn

The directory is:

~/.config/codeblocks

and not:

~./config/codeblocks

amirteymuri

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?

Jenna

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).