All extension discovery without stylesheets.

main
Alex Huszagh 2022-05-01 01:17:19 -05:00
parent d6537888e7
commit a694f3164c
1 changed files with 8 additions and 2 deletions

View File

@ -145,8 +145,14 @@ def parse_extensions(args):
values = split_csv(args.extensions)
if 'all' in values:
files = glob.glob(f'{home}/extension/*/*stylesheet.qss.in')
values = [os.path.basename(os.path.dirname(i)) for i in files]
values = []
for dirname in os.listdir(f'{home}/extension'):
ext = f'{home}/extension/{dirname}'
ext_files = ('stylesheet.qss.in', 'icons.json')
paths = [f'{ext}/{i}' for i in ext_files]
if os.path.isdir(ext) and any(os.path.exists(i) for i in paths):
values.append(dirname)
args.extensions = values
def parse_hexcolor(color):