mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-22 05:48:53 +01:00
reload: Remove GTK3 code and add comment
This commit is contained in:
parent
b3fe4d47ae
commit
609771e695
@ -25,18 +25,17 @@ def gtk():
|
|||||||
home = pathlib.Path.home()
|
home = pathlib.Path.home()
|
||||||
theme_path = home / ".themes" / "Flatabulous-wal"
|
theme_path = home / ".themes" / "Flatabulous-wal"
|
||||||
gtk2_file = __cache_dir__ / "colors-gtk2.rc"
|
gtk2_file = __cache_dir__ / "colors-gtk2.rc"
|
||||||
gtk3_file = __cache_dir__ / "colors-gtk3.css"
|
|
||||||
|
|
||||||
if theme_path.is_dir():
|
if theme_path.is_dir():
|
||||||
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")
|
||||||
|
|
||||||
if gtk3_file.is_file():
|
# Here we call a Python 2 script to reload the GTK themes.
|
||||||
shutil.copy(gtk3_file, theme_path / "gtk-3.0")
|
# This is done because the Python 3 GTK/Gdk libraries don't
|
||||||
|
# provide a way of doing this.
|
||||||
if shutil.which("python2"):
|
if shutil.which("python2"):
|
||||||
module_dir = pathlib.Path(__file__).parent
|
module_dir = pathlib.Path(__file__).parent
|
||||||
util.disown("python2", module_dir / "scripts" / "gtk_reload.py")
|
util.disown("python2", module_dir / "scripts" / "gtk_reload.py")
|
||||||
|
|
||||||
|
|
||||||
def i3():
|
def i3():
|
||||||
|
Loading…
Reference in New Issue
Block a user