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

StackOverflow https://stackoverflow.com/questions/20576661

  •  01-09-2022
  •  | 
  •  

سؤال

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?

هل كانت مفيدة؟

المحلول 2

Set the picture-uri value to an empty string.

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top