Upgrade to 14.04 broke gsettings

Posted by zrneely on Ask Ubuntu See other posts from Ask Ubuntu or by zrneely
Published on 2014-08-19T15:06:59Z Indexed on 2014/08/19 22:33 UTC
Read the original article Hit count: 277

Filed under:
|
|

I have a cron job which runs every 30 minutes that changes the background image by running this bash script:

#!/bin/bash

export DISPLAY=:0
export GSETTINGS_BACKEND=dconf

wpdir="/home/username/Pictures/wallpapers/"
prefix="file://"
file=`ls $wpdir | shuf -n 1`
gsettings set org.gnome.desktop.background picture-uri "$prefix$wpdir$file"

This worked perfectly until I upgraded to 14.04. Now, running the script produces this output:

(process:27459): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused

What can I do to fix this? Google didn't turn up any useful results.

EDIT: I noticed that running this does change the background displayed on the lock screen, but it does not affect the desktop background.

© Ask Ubuntu or respective owner

Related posts about 14.04

Related posts about dconf

  • Editing /.config/dconf/user

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I am having a problem with Gnome3 (actually, I have it set to fallback mode, or Gnome 2). I have two displays and I need an X screen (I used nvidia-xconfig and nvidia-settings to do this) for each screen. However, every time I either restart X or log in, Gnome seems to be adding the objects values… >>> More

  • Did "sudo dconf reset -f /org/compiz". Now ccsm settings ignored

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I executed: sudo dconf reset -f /org/compiz Now changing settings in CompizConfig Settings Manager (ccsm) has no effect. For example, changing the number of desktops has no effect. I tried purging and reinstalling ccsm but it didn't help. Incidentally, where is the documentation for this sort… >>> More

  • disable all hotkeys with dconf-editor

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I'm building a deb package that will create a kiosk user account. When you login to this account, the browser automatically starts and navigates to a pre-given website. Also all the hotkeys should be disabled except for one you defined. Now I'm at the part that the browser starts and my disable script… >>> More

  • Do dconf use EXI binary XML?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    A question came to my mind reading an answer to the question What are the differences between gconf and dconf?. In an reply to the above question, Oli said: Binary read access is far faster than parsing XML. However, there exist a W3C recommendation for binary XML, since 2010: Efficient XML… >>> More

  • Upgrade to 14.04 broke gsettings

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have a cron job which runs every 30 minutes that changes the background image by running this bash script: #!/bin/bash export DISPLAY=:0 export GSETTINGS_BACKEND=dconf wpdir="/home/username/Pictures/wallpapers/" prefix="file://" file=`ls $wpdir | shuf -n 1` gsettings set org.gnome.desktop.background… >>> More