How do I change the wallpaper in GNOME 3 via a script?

7,271

Gnome3 uses dconf instead of gconf to background and wallpaper issues. The tool to modify dconf is gsettings and it can be done by the following way:

gsettings set org.gnome.desktop.background picture-uri "file:///home/user/background.jpg"
Share:
7,271

Related videos on Youtube

juanmah
Author by

juanmah

Updated on September 18, 2022

Comments

  • juanmah
    juanmah over 1 year

    The former way to change wallpaper in Gnome2 consists in use gconftool-2, but this tool has no effect in Gnome3.

    gconftool-2 --type=string --set /desktop/gnome/background/picture_filename /home/user/background.jpg