After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662158 - dconf update requires /etc/dconf/db/site.d/locks
dconf update requires /etc/dconf/db/site.d/locks
Status: RESOLVED FIXED
Product: dconf
Classification: Core
Component: dconf
git master
Other Linux
: Normal normal
: ---
Assigned To: dconf-maint
dconf-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-19 03:28 UTC by carl
Modified: 2011-10-19 21:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix error handling for missing *.d/locks/ dir (979 bytes, patch)
2011-10-19 21:40 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description carl 2011-10-19 03:28:06 UTC
sudo dconf update
Error opening directory '/etc/dconf/db/site.d/locks': No such file or directory

mkdir... then no error.

steps that might be relevant: 
mkdir -p /etc/dconf/profile
cd /etc/dconf/profile
echo user > user
echo site >> user

mkdir -p /etc/dconf/db/site.d/
cd /etc/dconf/db/site.d/

cat <<EOT >local.dconf
[org/gnome/desktop/screensaver]
idle-activation-enabled=false
lock-enabled=false
# (more deleted, hope it doesn't matter) 
EOT
Comment 1 Allison Karlitskaya (desrt) 2011-10-19 21:40:35 UTC
Created attachment 199483 [details] [review]
Fix error handling for missing *.d/locks/ dir

We were incorrectly checking for NULL as a return value from Dir.open()
when that function as bound as throwing an exception on error -- so
catch the exception instead.
Comment 2 Allison Karlitskaya (desrt) 2011-10-19 21:40:45 UTC
Attachment 199483 [details] pushed as 1ec44d6 - Fix error handling for missing *.d/locks/ dir