List of apps

This commit is contained in:
BarsTiger
2022-01-24 22:25:47 +02:00
parent 14912e76d6
commit ec409b9d69
2 changed files with 13 additions and 2 deletions

View File

@@ -137,3 +137,11 @@ def uninstall(package, is_gui=False):
print(f"[green][OK] Launch script deleted[/]")
else:
print(f"[red]App {package} is not installed or doesn't have launch script[/]")
def 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"):
print(f"{file.split('.')[0]}")