Commit a8e9b50e authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

widgets: Better handle overrides for GNOME Shell modes

https://bugzilla.gnome.org/show_bug.cgi?id=787844
parent 480871c1
......@@ -133,14 +133,14 @@ def adjust_schema_for_overrides(originalSchema, key, options):
if (_shell is None):
return originalSchema
if (_shell.mode == 'classic'):
if (_shell.mode == 'user'):
overridesSchema = "org.gnome.shell.overrides"
overridesFile = "org.gnome.shell.gschema.xml"
elif (_shell.mode == 'classic'):
overridesSchema = "org.gnome.shell.extensions.classic-overrides"
overridesFile = None
elif (_shell.mode == 'ubuntu'):
return originalSchema
else:
overridesSchema = "org.gnome.shell.overrides"
overridesFile = "org.gnome.shell.gschema.xml"
return originalSchema
try:
if (key in GSettingsSetting(overridesSchema, schema_filename=overridesFile).list_keys()):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment