nixpkgs-suyu/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/find_gsettings.patch
Alexander Ried 68eaeab4bc gnome3_22: init at 3.22
copied from 3.20
removed whitespaces at the end of lines
updated to 3.22 versions
removed webkitgtk24 where possible

gnome3_22.evolution: nspr include dir broken / not needed anymore
gnome3_22.gfbgraph: 0.2.2 -> 0.2.3
gnome3_22.gjs: 1.44.0 -> 1.46.0
gnome3_22.gnome-autoar: init at 0.1.1
gnome3_22.gnome-core.folks: 0.11.0 -> 0.11.2
gnome3_22.gnome-user-share 3.18.1 -> 3.18.3
gnome3_22.gnome-weather: 3.20.1 -> 3.20.2
gnome3_22.grilo: 0.3.1 -> 0.3.2
gnome3_22.grilo-plugins: 0.3.2 -> 0.3.3
gnome3_22.libgepub: init at 0.4
gnome3_22.libgweather: 3.20.1 -> 3.20.3
gnome3_22.rest: 0.7.93 -> 0.8.0
gnome3_22.totem: x86 patch is upstream
gnome3_22.tracker: 1.9.0 -> 1.10.0
2016-10-15 20:32:11 +02:00

22 lines
943 B
Diff

diff --git a/gtweak/gsettings.py b/gtweak/gsettings.py
index a00fe19..dce74b2 100644
--- a/gtweak/gsettings.py
+++ b/gtweak/gsettings.py
@@ -33,10 +33,15 @@ class GSettingsMissingError(Exception):
class _GSettingsSchema:
def __init__(self, schema_name, schema_dir=None, schema_filename=None, **options):
- if not schema_dir:
- schema_dir = gtweak.GSETTINGS_SCHEMA_DIR
if not schema_filename:
schema_filename = schema_name + ".gschema.xml"
+ if not schema_dir:
+ schema_dir = gtweak.GSETTINGS_SCHEMA_DIR
+ for xdg_dir in GLib.get_system_data_dirs():
+ dir = os.path.join(xdg_dir, "glib-2.0", "schemas")
+ if os.path.exists(os.path.join(dir, schema_filename)):
+ schema_dir = dir
+ break
schema_path = os.path.join(schema_dir, schema_filename)
if not os.path.exists(schema_path):