Fix Heroic Linux/Windows bug

This commit is contained in:
kramo
2023-03-30 22:07:48 +02:00
parent ef509f2eb0
commit 7a3019775c

View File

@@ -50,7 +50,9 @@ def heroic_parser(parent_widget):
"heroic",
),
)
elif os.path.exists(os.path.join(os.getenv("appdata"), "heroic")):
elif os.name == "nt" and os.path.exists(
os.path.join(os.getenv("appdata"), "heroic")
):
schema.set_string(
"heroic-location", os.path.join(os.getenv("appdata"), "heroic")
)