Merge pull request #74 from deviantfero/patch-1

Theme is optional for GTK refresh
This commit is contained in:
Dylan Araps 2017-08-07 10:24:59 +10:00 committed by GitHub
commit d9a0865277

View File

@ -29,14 +29,14 @@ def gtk():
if gtk2_file.is_file():
shutil.copy(gtk2_file, theme_path / "gtk-2.0")
# 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"])
# 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"])
else:
print("warning: GTK2 reload support requires Python 2.")
else:
print("warning: GTK2 reload support requires Python 2.")
def i3():