diff options
| author | Dylan Araps <dylanaraps@users.noreply.github.com> | 2017-08-07 10:24:59 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-07 10:24:59 +1000 |
| commit | d9a0865277dfdfe7951b9b429d5af1f2be27d66c (patch) | |
| tree | fc9e8f0b79dc9863c070df5067c17ce683ef1ba9 /pywal | |
| parent | 1f1c21e78893d958d054bc0bb3887a40a8479507 (diff) | |
| parent | 5b3806d0a8e907026f181c9dba101723b9bde2fb (diff) | |
Merge pull request #74 from deviantfero/patch-1
Theme is optional for GTK refresh
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/reload.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pywal/reload.py b/pywal/reload.py index a01184c..f284966 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -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"]) - - else: - print("warning: GTK2 reload support requires Python 2.") + # 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.") def i3(): |
