1

I have installed ubuntu-gnome-desktop from configuration file (Ubuntu 16.04). Then I am executing

gsettings set org.gnome.desktop.background picture-uri file:///home/techy/Downloads/desktop_bg.jpg

and the error generated is

*error*: **(process:15247): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY**

Can someone provide me reference how can I solve it? I am trying to set specific image as desktop background.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
techy
  • 127
  • Why do you need to set it that way? If you are coding script for auto-changing wallapers, there's already nice app for this, called Wallch. – GreggD Dec 30 '16 at 15:51
  • I am looking to do it using a script. – techy Dec 30 '16 at 16:03
  • Wallch also got CLI, maybe it will meet your needs, wallch --change=/home/techy/Downloads – GreggD Dec 30 '16 at 16:04
  • From which environment are you executing gsettings? I assume it's from a cron script or some background service because there's no D-Bus session daemon (which you need for GSettings) or X server (which would allow you to start a new D-Bus session daemon) available. What are you trying to achieve ultimately? – David Foerster Dec 30 '16 at 16:19
  • I am executing from shell script. My script should change the desktop background. – techy Dec 30 '16 at 16:29
  • @GreggD- wallch is not working. – techy Dec 30 '16 at 16:30
  • I am getting this error now.

    '(process:16010): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch --autolaunch=933ae0d31fab40fe95872ec177c616c5 --binary-syntax --close-stderr': Child process exited with code 1'

    – techy Jan 03 '17 at 15:37
  • are you still having this problem? – Zanna Apr 17 '18 at 18:39

0 Answers0