[gnome-tweak-tool] widgets: Better handle overrides for GNOME Shell modes



commit a8e9b50e04bc61f5a3130ad8c4f9f44dc53f250d
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Wed Sep 20 13:26:58 2017 -0400

    widgets: Better handle overrides for GNOME Shell modes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787844

 gtweak/widgets.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index 34c98f5..375eaeb 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -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()):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]