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 635375 - Port to GSettings
Port to GSettings
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks: 622558
 
 
Reported: 2010-11-20 20:08 UTC by Javier Jardón (IRC: jjardon)
Modified: 2012-03-15 22:58 UTC
See Also:
GNOME target: 3.4
GNOME version: 3.3/3.4


Attachments
Gschema xml file (2.89 KB, patch)
2011-08-26 17:53 UTC, Marc Ruiz - radykal -
none Details | Review
use gsettings instead of gconf for simple greeter (45.85 KB, patch)
2012-02-09 12:11 UTC, Marek Kašík
none Details | Review
migration of GDM's simple-greeter from GConf to GSettings (41.73 KB, patch)
2012-02-15 12:13 UTC, Marek Kašík
none Details | Review

Description Javier Jardón (IRC: jjardon) 2010-11-20 20:08:10 UTC
http://live.gnome.org/GnomeGoals/GSettingsMigration

$ git grep gconf-c
gui/simple-chooser/chooser-main.c:#include <gconf/gconf-client.h>
gui/simple-chooser/gdm-host-chooser.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-greeter-login-window.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-greeter-panel.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-greeter-session.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-layouts.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-recent-option-widget.c:#include <gconf/gconf-client.h>
gui/simple-greeter/gdm-user-chooser-widget.c:#include <gconf/gconf-client.h>
gui/simple-greeter/greeter-main.c:#include <gconf/gconf-client.h>
gui/user-switch-applet/applet.c:#include <gconf/gconf-client.h>
Comment 1 Bruno Boaventura 2011-03-26 02:11:35 UTC
I'm working on this. Can anyone convert the schemas from http://git.gnome.org/browse/gdm/tree/data/gdm.schemas.in.in using gsettings-schema-convert for me? I tried many times and gsettings-schema-convert doesn't work for me.
Comment 2 Bruno Boaventura 2011-03-26 02:14:04 UTC
For the records...

Traceback (most recent call last):
  • File "/home/bruno/.local/opt/gnome/bin/gsettings-schema-convert", line 1146 in <module>
    res = main(sys.argv)
  • File "/home/bruno/.local/opt/gnome/bin/gsettings-schema-convert", line 1098 in main
    schema_root = parser.parse()
  • File "/home/bruno/.local/opt/gnome/bin/gsettings-schema-convert", line 1022 in parse
    gconf_schema = GConfSchema(schema_node)
  • File "/home/bruno/.local/opt/gnome/bin/gsettings-schema-convert", line 815 in __init__
    self.type = node.find('type').text
AttributeError: 'NoneType' object has no attribute 'text'

Comment 3 Marc Ruiz - radykal - 2011-08-26 17:29:48 UTC
Same errors for me. Gonna convert it manually.
Comment 4 Marc Ruiz - radykal - 2011-08-26 17:53:33 UTC
Created attachment 194869 [details] [review]
Gschema xml file

This is only the gschema migrated file.
Comment 5 Matthias Clasen 2011-11-01 22:23:33 UTC
the oversight here is that what you are looking at is not a gconf schema...
Comment 6 Marek Kašík 2012-02-09 12:11:26 UTC
Created attachment 207183 [details] [review]
use gsettings instead of gconf for simple greeter

Hi,

I've prepared a patch which converts usage of GConf in simple greeter to GSettings. There are no other GConf schemas in GDM other than the one for simple greeter. But simple greeter still uses GConf for getting some values.
I've renamed keys to be in lowercase format and to use '-' for separation of words.

Regards

Marek
Comment 7 Ray Strode [halfline] 2012-02-09 23:41:15 UTC
Hey thanks for looking into this.

I'd like it if the greeter used the org.gnome.login-screen.gschema.xml schema that is already there (where it makes sense).

The settings daemon / a11y bits etc aren't needed.  We do lock down of session specific keys in a different way now, so they can just be dropped rather than migrated.

Also you can drop wm-uses-compiz .  that feature makes little sense and we should get rid of it.
Comment 8 Marek Kašík 2012-02-15 12:13:31 UTC
Created attachment 207621 [details] [review]
migration of GDM's simple-greeter from GConf to GSettings

(In reply to comment #7)
> Hey thanks for looking into this.
> 
> I'd like it if the greeter used the org.gnome.login-screen.gschema.xml schema
> that is already there (where it makes sense).
> 
> The settings daemon / a11y bits etc aren't needed.  We do lock down of session
> specific keys in a different way now, so they can just be dropped rather than
> migrated.
> 
> Also you can drop wm-uses-compiz .  that feature makes little sense and we
> should get rid of it.

Hi Ray,

thank you for your answer. I've merged those keys into the org.gnome.login-screen.gschema.xml schema. But I haven't created a new child schema for them. If you want, I can do such a child schema (it should be quick).

I've removed those settings-daemon and a11y schemas and the wm-use-compiz key.
I've changed <summary> and <description> to <_summary> and <_description> for the merged keys. If it is not appropriate, I'll change it back.

Also, there were one key which is the same in both schemas. It is disable-user-list. Simple greeter uses the one from the original schema now.

There were also 2 similar keys, logo (login-screen) and logo-icon-name (simple-greeter) but the first one is more like logo-path, so I've merged the one from simple-greeter schema to login-screen schema too.

Regards

Marek
Comment 9 Marek Kašík 2012-02-24 16:09:43 UTC
Hi Ray,

do you think that the patch could go to 3.4 still?

Marek
Comment 10 André Klapper 2012-03-07 10:03:05 UTC
halfline: Can Marek's patch get a review, please?
Comment 11 Ray Strode [halfline] 2012-03-07 23:11:03 UTC
it's on my radar
Comment 12 Ray Strode [halfline] 2012-03-15 22:58:34 UTC
Thanks, i've commited this with minor changes.