Merge pull request #959 from chedge/pipx_compatibility

Added path for themes directory when installed via pipx
This commit is contained in:
tobi-wan-kenobi 2023-03-26 01:30:32 +01:00 committed by GitHub
commit b750d96a72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ if os.environ.get("XDG_DATA_DIRS"):
PATHS.extend([ PATHS.extend([
os.path.expanduser("~/.config/bumblebee-status/themes"), os.path.expanduser("~/.config/bumblebee-status/themes"),
os.path.expanduser("~/.local/share/bumblebee-status/themes"), # PIP os.path.expanduser("~/.local/share/bumblebee-status/themes"), # PIP
os.path.expanduser("~/.local/pipx/venvs/bumblebee-status/share/bumblebee-status/themes"), # PIPX
"/usr/share/bumblebee-status/themes", "/usr/share/bumblebee-status/themes",
]) ])