Author Topic: codeblocks do not save config file changes  (Read 1599 times)

Offline ANTWA_SENSEI

  • Single posting newcomer
  • *
  • Posts: 3
codeblocks do not save config file changes
« 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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1203
Re: codeblocks do not save config file changes
« Reply #1 on: February 21, 2022, 09:48:18 am »
Check owner and permissions of the default.conf file.

Offline ANTWA_SENSEI

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks do not save config file changes
« Reply #2 on: February 21, 2022, 10:35:22 am »
it is owned by root

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1203
Re: codeblocks do not save config file changes
« Reply #3 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.

Offline ANTWA_SENSEI

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks do not save config file changes
« Reply #4 on: February 21, 2022, 11:41:14 am »
Thanks it worked (:

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: codeblocks do not save config file changes
« Reply #5 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