summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-24 21:56:41 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-24 21:56:41 +1000
commit609771e695a2cec2ae5e1dd6ef91021cc6b83b71 (patch)
tree31dd65f1902f62be29a697d9c2286cd0994750ab /pywal
parentb3fe4d47ae12fba7e43bf849a1d9e13703bf7581 (diff)
reload: Remove GTK3 code and add comment
Diffstat (limited to 'pywal')
-rw-r--r--pywal/reload.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pywal/reload.py b/pywal/reload.py
index 9e4b31e..36c3770 100644
--- a/pywal/reload.py
+++ b/pywal/reload.py
@@ -25,18 +25,17 @@ def gtk():
home = pathlib.Path.home()
theme_path = home / ".themes" / "Flatabulous-wal"
gtk2_file = __cache_dir__ / "colors-gtk2.rc"
- gtk3_file = __cache_dir__ / "colors-gtk3.css"
if theme_path.is_dir():
if gtk2_file.is_file():
shutil.copy(gtk2_file, theme_path / "gtk-2.0")
- if gtk3_file.is_file():
- shutil.copy(gtk3_file, theme_path / "gtk-3.0")
-
- if shutil.which("python2"):
- module_dir = pathlib.Path(__file__).parent
- util.disown("python2", module_dir / "scripts" / "gtk_reload.py")
+ # Here we call a Python 2 script to reload the GTK themes.
+ # This is done because the Python 3 GTK/Gdk libraries don't
+ # provide a way of doing this.
+ if shutil.which("python2"):
+ module_dir = pathlib.Path(__file__).parent
+ util.disown("python2", module_dir / "scripts" / "gtk_reload.py")
def i3():