mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-09 07:28:46 +01:00
Merge pull request #74 from deviantfero/patch-1
Theme is optional for GTK refresh
This commit is contained in:
commit
d9a0865277
@ -29,14 +29,14 @@ def gtk():
|
|||||||
if gtk2_file.is_file():
|
if gtk2_file.is_file():
|
||||||
shutil.copy(gtk2_file, theme_path / "gtk-2.0")
|
shutil.copy(gtk2_file, theme_path / "gtk-2.0")
|
||||||
|
|
||||||
# Here we call a Python 2 script to reload the GTK themes.
|
# Here we call a Python 2 script to reload the GTK themes.
|
||||||
# This is done because the Python 3 GTK/Gdk libraries don't
|
# This is done because the Python 3 GTK/Gdk libraries don't
|
||||||
# provide a way of doing this.
|
# provide a way of doing this.
|
||||||
if shutil.which("python2"):
|
if shutil.which("python2"):
|
||||||
util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])
|
util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("warning: GTK2 reload support requires Python 2.")
|
print("warning: GTK2 reload support requires Python 2.")
|
||||||
|
|
||||||
|
|
||||||
def i3():
|
def i3():
|
||||||
|
Loading…
Reference in New Issue
Block a user