qutebrowser: Source colorscheme file from xdg state dir

This commit is contained in:
Marty Oehme 2023-03-03 18:48:55 +01:00
parent 22341e7988
commit ec20d637c0
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -72,4 +72,7 @@ c.hints.selectors["code"] = [
]
# give the browser nice theme colors
config.source("colorscheme.py")
state_dir=os.environ.get('XDG_STATE_HOME', f"{os.environ['HOME']}/.local/state")
colorscheme=f"{state_dir}/qutebrowser/colorscheme.py"
if os.path.isfile(colorscheme):
config.source(colorscheme)