Bug 1319610

Summary: Dconf and dconf-editor show different results for the same schema.
Product: Red Hat Enterprise Linux 7 Reporter: Pavlin Georgiev <pgeorgie>
Component: dconfAssignee: Marek Kašík <mkasik>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 10:26:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Dconf output
none
Dconf-editor output
none
Gsettings output none

Description Pavlin Georgiev 2016-03-21 08:25:43 UTC
Description of problem:
dconf and dconf-editor show different results for the same schema.


Version-Release number of selected component (if applicable):
OS: RHEL 7.3 Beta (Maipo)
Name        : dconf
Version     : 0.22.0
Release     : 2.el7
Architecture: x86_64

Name        : dconf-editor
Version     : 0.22.0
Release     : 2.el7
Architecture: x86_64


How reproducible:
Start GNOME session.
Compare the output of dconf-editor, gsettings and dconf for the same scheme.
It is org.gnome.desktop.interface


Steps to Reproduce:
1. Run dconf-editor and search for the following schema: org.gnome.desktop.interface .
2. Make a screenshot.
3. Open the terminal and type: gsettings list-keys org.gnome.desktop.interface .
4. Save the output to a file
5. Open the terminal and type:dconf list "/org/gnome/desktop/interface/"
6. Save the output to a file.
7. Compare the results

Actual results:
See attachments.

Expected results:
dconf and dconf-editor should show the same keys in the same schema.

Additional info:

Comment 1 Pavlin Georgiev 2016-03-21 08:34:36 UTC
Created attachment 1138481 [details]
Dconf output

Comment 2 Pavlin Georgiev 2016-03-21 08:35:08 UTC
Created attachment 1138482 [details]
Dconf-editor output

Comment 3 Pavlin Georgiev 2016-03-21 08:35:48 UTC
Created attachment 1138483 [details]
Gsettings output

Comment 5 Marek Kašík 2016-03-21 10:26:14 UTC
(In reply to Pavlin Georgiev from comment #0)
> Expected results:
> dconf and dconf-editor should show the same keys in the same schema.

It shouldn't unless you've already changed all keys in the directory and haven't added some other. DConf just stores the values and doesn't read schemas. You can save there even keys which are not in the corresponding schema.
dconf-editor access the schemas so it sees all the keys but this is necessary to allow users to change the values. Maybe the name of the app is misleading here, it should be probably named like gsettings-editor.