Skip to content
  • Allison Karlitskaya's avatar
    gsettings tool: use schema for listing keys · bb8eea61
    Allison Karlitskaya authored and Matthias Clasen's avatar Matthias Clasen committed
    Use the newly added g_settings_schema_list_keys() API instead of
    g_settings_list_keys() in order to list keys.
    
    Doing this allows the 'list-keys' command to work without creating a
    GSettings object, which is more efficient.  It also means that we don't
    have to provide a (meaningless and ignored) path when listing keys on
    relocatable schemas.
    
    While we're at it, update the 'range' command not to require creation of
    a GSettings object, in a similar way.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740308
    bb8eea61