User forums > Using Code::Blocks
Some settings not saved and X clipboard not working
(1/1)
vitke:
I set the caret color in Settings->Editor->Margins and caret and choose File->Save everything. Next time I enter codeblocks the caret color is again the default one. No wonder, since the caret section of default.conf
--- Code: --- <caret>
<STYLE int="1" />
<WIDTH int="1" />
<PERIOD int="500" />
</caret>
--- End code ---
does not contain any color at all.
There are other problems as well. I installed color themes from here: http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes. I choose a color theme (Vim), choose File->Save everything. Next time I enter codeblocks the default color scheme is selected (modnokai_night_shift_v2).
Is there any way to use the normal X clipboard? I am unable to paste text from an external window (a terminal or another editor) using the middle mouse button. I can paste text within codeblocks in this way, but only as long as it remains selected.
I'm in Arch Linux, with codeblocks version 16.01.
oBFusCATed:
1. the colour is not saved there, but in the colour manager settings
2. save everything doesn't save config files, only correctly exiting c::b saves config files.
3. you can have middle paste, but you cannot have select to copy and then use middle paste
1. and 2. are probably caused by a crash at exit or a permission problem with default.conf.
vitke:
Indeed, ~/.config/codeblocks/default.conf was owned by root. Thanks!
Somehow now it's possible to paste from terminal with a middle button.
EDIT: The problem with the default.conf ownership was caused because I did
--- Code: ---sudo cb_share_config
--- End code ---
following the http://tafhim.blogspot.rs/2010/08/exporting-and-importing-codeblocks.html blog. But sudo seems not to be necessary.
oBFusCATed:
--- Quote from: vitke on December 20, 2016, 09:37:13 pm ---EDIT: The problem with the default.conf ownership was caused because I did
--- Code: ---sudo cb_share_config
--- End code ---
following the http://tafhim.blogspot.rs/2010/08/exporting-and-importing-codeblocks.html blog. But sudo seems not to be necessary.
--- End quote ---
Of course it is wrong. Sudo is for root own stuff the config of C::B is user owned. Probably we should add some warning or message to prevent such issues, because this problem is not uncommon. :(
Navigation
[0] Message Index
Go to full version