Skip to content

Gio: Add non-crashing overrides for Gio.Settings

Philip Chimento requested to merge ptomato/gjs:205-gsettings-overrides into master

Gio.Settings aborts intentionally if it is asked to load a nonexistent schema or access a nonexistent key. This is all well and good for C programs that install their own schemas, but a problem that many GNOME Shell extensions authors end up running into when trying to deal with multiple GNOME versions at once.

Based on code from Cinnamon written by Michael Webster. See https://github.com/linuxmint/Cinnamon/blob/master/js/ui/overrides.js#L21-L98 Used with permission of the copyright holder, see comments in #205 (closed).

Closes #205 (closed)

Edited by Philip Chimento

Merge request reports