I even tried to extract just pictures to one of the default folders and set wallpaper from there, but the result was similar. The system seemingly does not detect changes. To make a change in it, I need to manually go to in GUI System Settings>Backgrounds>press + sign to add a new folder, then go down to file system where is locating my new folder, and here select one. After that following commands works, but this isn't what I need.
How I can make this in bash, please?
And can by another way better for this, eg. keep this in .scripts directory? I tried that with the same result, but I ask just in case if there is the proper way.
I tried it on Cinnamon 20.2 and LMDE 4 both in a virtual machine and Cinnamon even on real hardware.
I rebooted the system of course, but nothing happens after that.
Code: Select all
# tar -xzvf My_Backgrounds.tar.gz -C /usr/share/backgrounds
gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/My_Backgrounds/My_background.jpg"
The solution is to place custom backgrounds in the home folder, the way above was overcomplicated.