[Bug 1122028] Re: gsettings does not respect dconf locks

Margarita Manterola marga at google.com
Mon Feb 11 15:08:01 UTC 2013


On the other bug, Ryan Lortie explained that this is because the value
needs to be casted to uint32.

Changing:
idle-delay=10
To:
idle-delay=uint32 10

Makes this work correctly.

I still think this is a bug though, since it's a conf file, not a
programming language.  But in any case it should be documented
somewhere... Where?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1122028

Title:
  gsettings does not respect dconf locks

Status in “glib2.0” package in Ubuntu:
  Confirmed

Bug description:
  Description:	Ubuntu 12.04.1 LTS
  Release:	12.04

  libglib2.0-bin:
    Installed: 2.32.3-0ubuntu1
    Candidate: 2.32.3-0ubuntu1

  gsettings does not respect locked dconf values (although it does know
  that they are not writable).

  Steps to reproduce:
  1. Lock the value of /org/gnome/desktop/session/idle-delay by setuping up dconf
  as outlined at https://live.gnome.org/dconf/SystemAdministrators, specifically

  $ mkdir -p /etc/dconf/profile
  $ mkdir -p /etc/dconf/db/local.d
  $ mkdir -p /etc/dconf/db/site.d/locks

  $ cat /etc/dconf/profiles/user
  user-db:user
  system-db:local
  system-db:site

  $ cat /etc/dconf/db/site.d/screensaver
  [org/gnome/desktop/session]
  idle-delay=10

  $ cat /etc/dconf/db/site.d/locks/screensaver
  /org/gnome/desktop/session/idle-delay

  2. Run `dconf update` to updates these changes.

  3. Run `dconf read /org/gnome/desktop/session/idle-delay` and observe
  the value is '10'.

  4. Run `gsettings get org.gnome.desktop.session idle-delay` and
  observe the value is the default value 'uint32 600'

  
  Expected results:
  dconf and gsettings would return the same value.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1122028/+subscriptions




More information about the foundations-bugs mailing list