Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set background to a solid color programmatically in Gnome 3?

Tags:

gnome

I tried:

gsettings set org.gnome.desktop.background primary-color '#000000'
gsettings set org.gnome.desktop.background secondary-color '#000000'
gsettings set org.gnome.desktop.background color-shading-type 'solid'

However, my background is still the default heisenbug picture.

What setting do I have to change to use my color instead of the picture?

like image 219
ToBeReplaced Avatar asked Dec 13 '13 21:12

ToBeReplaced


2 Answers

Should set picture-options to "none":

$ gsettings set org.gnome.desktop.background picture-options 'none'

Otherwise, when I only do https://stackoverflow.com/a/20594882/488373 (picture-uri "") then I can see error logs from GNOME trying to load an image with an incomplete/missing filename over and over and over

like image 186
jokeyrhyme Avatar answered Oct 07 '22 12:10

jokeyrhyme


Set the picture-uri value to an empty string.

like image 39
Jussi Kukkonen Avatar answered Oct 07 '22 12:10

Jussi Kukkonen