User forums > Help
Compiler settings and syntax highlighting settings being lost
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.
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?
--- End quote ---
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.
Navigation
[0] Message Index
[#] Next page
Go to full version