At the onset of my live usage in Ubuntu Gnome 15.10, use a bash script to set the colour of my gnome-terminal. The code used is

dconf write $link/background-transparency-percent '10'
dconf write $link/scrollback-unlimited true
dconf write $link/use-theme-colors false
dconf write $link/use-theme-transparency false
dconf write $link/use-transparent-background true
dconf write $link/foreground-color 'rgb(0,43,54)'
dconf write $link/background-color 'rgb(131,148,150)'

The last 2 lines of the code give a key-value error. When I look at the dconf-editor org>gnome>terminal>legacy>profiles:>{Default profile} the attributes



are unavailable. How do I get rid of the error?

Note: When done manually via gnome-ternimal>Edit>Profile Preferences>Colours>Built-in schemes the above attributes appear in the same location in dconf-editor.


foreground-color and friends are of type string. If you perform a dconf read ... on the said field, the output will be quoted within single quotes, e.g.:


To write such a value, you have to pass those literal quote characters to dconf, that is, you have to protect them from your shell from being parsed as special characters.

One possible way to protect them is to enclose the entire string within double quotes, e.g.:

dconf write ... "'rgb(0,43,54)'"
  • On dconf-editor the field's content is unquoted (rgb(0,43,54)), I guess that's how it should be and that the content printed using dconf read [...] is quoted only to clarify that's a string? – kos Mar 14 '16 at 7:07
  • I'm not familiar with dconf's design. I guess you're right, but I'd put it the other way around. From the command line you have to be able to distinguist between, let's say, the boolean true value and the string 'true'. That's where we start from. Then, on the UI a simplification can be made so that booleans are represented with checkboxes, so there's no longer a need to quote strings. At least this is my guess. – egmont Mar 14 '16 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.