Code::Blocks Forums

User forums => Help => Topic started by: ANTWA_SENSEI on February 21, 2022, 09:40:57 am

Title: codeblocks do not save config file changes
Post by: ANTWA_SENSEI on February 21, 2022, 09:40:57 am
hello, i am new to code:blocks, i work with it for some time , but my eyes can not handle the light mode, so i tried to install the dark mode
from this link: https://yuchen52.medium.com/change-editor-theme-for-code-blocks-windows-linux-mac-92e9c15cbca4
but after i install it the changes i perform is not saves after closing the codeblocks and it gives me this window(linked below).
i am using ubuntu 21.04
sorry for my poor english.
Title: Re: codeblocks do not save config file changes
Post by: Miguel Gimenez on February 21, 2022, 09:48:18 am
Check owner and permissions of the default.conf file.
Title: Re: codeblocks do not save config file changes
Post by: ANTWA_SENSEI on February 21, 2022, 10:35:22 am
it is owned by root
Title: Re: codeblocks do not save config file changes
Post by: Miguel Gimenez on February 21, 2022, 11:20:19 am
You must change ownership using something like:
Code
sudo chown ahmed:ahmed /home/ahmed/.config/codeblocks/default.conf
This is because you executed C::B as root, do not do this.
Title: Re: codeblocks do not save config file changes
Post by: ANTWA_SENSEI on February 21, 2022, 11:41:14 am
Thanks it worked (:
Title: Re: codeblocks do not save config file changes
Post by: AndrewCot on February 21, 2022, 11:47:28 am
Miguel, The other C::B files are still owned by root which could cause issues down the track. Better to run the following (and potentially against ~ just in case for non Linux users)
Code
sudo chown ahmed:ahmed -R /home/ahmed/.config/codeblocks