I have a script that downloads the Bing images and then sets the background. This script is running in anacron daily, so its run as root. Now it changes the background for root but not for user. How can I make it change the background for the user?
# Set the GNOME3 wallpaper
DISPLAY=:0 GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture- uri '"file://'$saveDir$picName'"'
# Set the GNOME 3 wallpaper picture options
DISPLAY=:0 GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options $picOpts`