nixpkgs-suyu/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/0003-Create-config-dir-if-it-doesn-t-exist.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

29 lines
906 B
Diff

From cdafa01dc90da486d0114b423e3e467f7b083d1b Mon Sep 17 00:00:00 2001
From: Jascha Geerds <jascha@jgeerds.name>
Date: Sun, 2 Aug 2015 12:01:20 +0200
Subject: [PATCH 3/3] Create config dir if it doesn't exist
Otherwise gnome-tweak-tool can't enable the dark theme and fails
without a clear error message.
---
gtweak/gtksettings.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gtweak/gtksettings.py b/gtweak/gtksettings.py
index bcec9f1..f39991b 100644
--- a/gtweak/gtksettings.py
+++ b/gtweak/gtksettings.py
@@ -35,6 +35,10 @@ class GtkSettingsManager:
def _get_keyfile(self):
keyfile = None
try:
+ config_dir = os.path.dirname(self._path)
+ if not os.path.isdir(config_dir):
+ os.makedirs(config_dir)
+
keyfile = GLib.KeyFile()
keyfile.load_from_file(self._path, 0)
except MemoryError:
--
2.7.0