Theme is optional for GTK refresh

I thought maybe that specific theme could be optional for running the reload script.
This commit is contained in:
Fernando Vásquez 2017-08-06 06:25:17 -06:00 committed by GitHub
parent 1f1c21e788
commit 524b52dee5

View File

@ -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():