From 7a3019775cb62e83a65cdefdcd160a2bbe934693 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Thu, 30 Mar 2023 22:07:48 +0200 Subject: [PATCH] Fix Heroic Linux/Windows bug --- src/utils/heroic_parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/heroic_parser.py b/src/utils/heroic_parser.py index 84c2a7f..6671e55 100644 --- a/src/utils/heroic_parser.py +++ b/src/utils/heroic_parser.py @@ -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") )