1 Commits
v1.0.1 ... dev

Author SHA1 Message Date
Julian Freeman
da7f17b6e6 dev 02022051 2024-02-02 20:51:21 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ from mw_dailycheck import MwDailyCheck
import daily_check_rc
version = (1, 0, 1)
version = (1, 0, 0)
ORG_NAME = "JnPrograms"
APP_NAME = "DailyCheck"

View File

@@ -50,7 +50,7 @@ def get_mac_installed_software() -> dict[str, str]:
def search(path: Path):
for c in path.glob("*"):
if str(c).endswith(".app"):
if c.is_dir() and (c / "Contents" / "Info.plist").exists():
if c.is_dir():
all_soft.append(c)
elif c.is_dir():
search(c)
@@ -61,6 +61,6 @@ def get_mac_installed_software() -> dict[str, str]:
all_soft.sort(key=lambda x: x.name.lower())
return {
app.name: get_app_icon_path(app / "Contents" / "Info.plist")
app.name: get_app_icon_path(Path(app) / "Contents" / "Info.plist")
for app in all_soft
}