summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Vásquez <fmorataya.04@gmail.com>2017-08-06 06:25:17 -0600
committerGitHub <noreply@github.com>2017-08-06 06:25:17 -0600
commit524b52dee5749fa0dc84f6c0ab0de4d729689349 (patch)
tree5736d6dbbf94c49a13bd04cd8e1713ecf44c3ba5
parent1f1c21e78893d958d054bc0bb3887a40a8479507 (diff)
Theme is optional for GTK refresh
I thought maybe that specific theme could be optional for running the reload script.
-rw-r--r--pywal/reload.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pywal/reload.py b/pywal/reload.py
index a01184c..e81cfb2 100644
--- a/pywal/reload.py
+++ b/pywal/reload.py
@@ -32,11 +32,11 @@ def gtk():
# 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"):
- util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])
+ if shutil.which("python2"):
+ util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])
- else:
- print("warning: GTK2 reload support requires Python 2.")
+ else:
+ print("warning: GTK2 reload support requires Python 2.")
def i3():