Support resetting set of GSettings keys with keyfile backend
Is there a supported way to reset many gsettings keys at once, with both the DConf and keyfile backend?
EasyEffects currently does g_settings_reset(self->settings, "");
to reset all GSettings keys. This works with the Dconf GSettings backend.
However, in Flatpak, where the keyfile GSettings backend is used instead of DConf, that doesn't work.
(easyeffects:2): GLib-GIO-CRITICAL **: 20:33:13.792: is_key: assertion 'key[length - 1] != '/'' failed
(easyeffects:2): GLib-GIO-CRITICAL **: 20:33:13.792: g_settings_backend_changed: assertion 'is_key (key)' failed
Is this undefined GSettings behaviour, that happens to work with DConf? Or is this a keyfile backend bug, and it should support g_settings_reset(self->settings, "");
?
If this is unsupported/undefined, is there a better way to reset many keys easily with the keyfile backend? I was unable to use gsettings reset-recursively
succesfully with the keyfile backend as well.
Resetting each key individual key looks like this, so ideally a set of keys can be reset at once.
Relevant blog post on the keyfile backend being used for Flatpak.