GUI development

This commit is contained in:
BarsTiger
2022-01-26 18:40:38 +02:00
parent 13bacb9cc0
commit f6ddecd6c8
3 changed files with 12 additions and 2 deletions

View File

@@ -139,9 +139,14 @@ def uninstall(package, is_gui=False):
print(f"[red]App {package} is not installed or doesn't have launch script[/]")
def apps_list():
def apps_list(is_gui=False):
apps = list()
if os.path.exists('{0}apps'.format(horsy_vars.horsypath)):
print(f"[green]Installed apps:[/]")
for file in os.listdir('{0}apps'.format(horsy_vars.horsypath)):
if file.endswith(".bat"):
if file.endswith(".bat") and not is_gui:
print(f"{file.split('.')[0]}")
else:
apps.append(file.split('.')[0])
if is_gui:
return apps