Added theme search path for snap install

pull/108/head
aristocratos 4 years ago
parent 0601aa2a94
commit 56f04e9fce

@ -194,9 +194,9 @@ for td in site.getsitepackages() + [site.getusersitepackages()]:
THEME_DIR = f'{td}/bpytop-themes'
break
else:
for td in ["local/", ""]:
if os.path.isdir(f'/usr/{td}share/bpytop/themes'):
THEME_DIR = f'/usr/{td}share/bpytop/themes'
for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]:
if os.path.isdir(f'{td}share/bpytop/themes'):
THEME_DIR = f'{td}share/bpytop/themes'
break
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…
Cancel
Save