tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.2k stars 229 forks source link

Added path for themes directory when installed via pipx #959

Closed chedge closed 1 year ago

chedge commented 1 year ago

bumblebee-status fails with:

Traceback (most recent call last):
  File "/home/username/.local/bin/bumblebee-status", line 17, in <module>
    import core.output
  File "/home/username/.local/pipx/venvs/bumblebee-status/lib/python3.10/site-packages/bumblebee_status/core/output.py", line 143, in <module>
    class i3(object):
  File "/home/username/.local/pipx/venvs/bumblebee-status/lib/python3.10/site-packages/bumblebee_status/core/output.py", line 144, in i3
    def __init__(self, theme=core.theme.Theme(), config=core.config.Config([])):
  File "/home/username/.local/pipx/venvs/bumblebee-status/lib/python3.10/site-packages/bumblebee_status/core/theme.py", line 63, in __init__
    self.__data = raw_data if raw_data else self.load(name)
  File "/home/username/.local/pipx/venvs/bumblebee-status/lib/python3.10/site-packages/bumblebee_status/core/theme.py", line 89, in load
    raise RuntimeError("unable to find theme {}".format(name))
RuntimeError: unable to find theme default

when invoked after being installed via pipx because the theme paths are different. This PR just adds an extra line to specify the correct path to themes when installed via pipx

tobi-wan-kenobi commented 1 year ago

Never heard of pipx before, many thanks for the improvement!