mirror of https://github.com/aristocratos/bpytop
Added theme search path for snap install
parent
0601aa2a94
commit
56f04e9fce
|
@ -194,9 +194,9 @@ for td in site.getsitepackages() + [site.getusersitepackages()]:
|
||||||
THEME_DIR = f'{td}/bpytop-themes'
|
THEME_DIR = f'{td}/bpytop-themes'
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
for td in ["local/", ""]:
|
for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]:
|
||||||
if os.path.isdir(f'/usr/{td}share/bpytop/themes'):
|
if os.path.isdir(f'{td}share/bpytop/themes'):
|
||||||
THEME_DIR = f'/usr/{td}share/bpytop/themes'
|
THEME_DIR = f'{td}share/bpytop/themes'
|
||||||
break
|
break
|
||||||
USER_THEME_DIR: str = f'{CONFIG_DIR}/themes'
|
USER_THEME_DIR: str = f'{CONFIG_DIR}/themes'
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
default_black.theme
|
|
||||||
flat-remix-light.theme
|
|
||||||
flat-remix.theme
|
|
||||||
greyscale.theme
|
|
||||||
gruvbox_dark.theme
|
|
||||||
monokai.theme
|
|
||||||
nord.theme
|
|
||||||
solarized_dark.theme
|
|
||||||
whiteout.theme
|
|
Loading…
Reference in New Issue