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

Compiler settings and syntax highlighting settings being lost

Started by namosca, November 01, 2016, 01:22:36 AM

Previous topic - Next topic

namosca

Hello.

Since I have switched to Linux, some settings are always lost when I re-open codeblocks, namely:
-Syntax highlighting theme
-Path of compiler executables
-List of previously opened projects

How can I solve this?

I understood from a chat session on CodeBlocks IRC that this might be due to CodeBlocks not having permission to write on his configuration file. In this case, which file (or directory) should I grant permission, and which concrete type of permission should be given?

Thanks,

oBFusCATed

Which version are you using?
This is the path to the file ~/.config/codeblocks/default.conf
I guess you need read and write permissions.

Are you sure C::B is not crashing on exit? To check this start it from terminal and look at the output.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

teto

maybe you opened 2 instances of codeblocks, in which case the last instance that closes overwrites the changes you have made in the other instance.
Try to modify the configuration with just one codeblocks open and close it immediately. Then  launch a new instance and check your changes were saved.

namosca

Hi Obfuscated, thanks for your information!!

Now, everything works fine. The problem was that only the root was allowed to use the file and, so as a solution I have changed it to be used by me with via the chown command.

I am using version 16.01 installed from apt-get on Ubuntu. Its pretty undesirable that this is the default behaviour.

Any chance it can be improved for future users?

Thank you!

oBFusCATed

Quote from: namosca on November 02, 2016, 06:29:04 PM
I am using version 16.01 installed from apt-get on Ubuntu. Its pretty undesirable that this is the default behaviour.

Any chance it can be improved for future users?
What do you mean by this? This is the expected behaviour. The config file is saved at the expected place on both linux and windows systems.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

namosca

Undesired in the sense that all compiler settings, syntax hightlit settings and preivous projects history are lost when we quit the program.

oBFusCATed

The only thing we could do about this issue is to report an error.
We're not setting the permissions on this file to root. You've somehow done it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

namosca

When you say reporting an error, you mean reporting to Ubuntu?

oBFusCATed

No. I mean show a messagebox with the error and record the error message in the log.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]