From cb059b186ba7daa68db366d07166996e338c2d91 Mon Sep 17 00:00:00 2001 From: PostScriptReal <149461738+PostScriptReal@users.noreply.github.com> Date: Thu, 11 Sep 2025 11:05:32 +1000 Subject: [PATCH] Windows hotfix --- menus.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/menus.py b/menus.py index 87a8c75..f05feca 100644 --- a/menus.py +++ b/menus.py @@ -29,7 +29,8 @@ def __init__(self, thme:dict, safeWidth:int): self.options = json.loads(js.read()) js.close() divider = "--------------------------------------------------------------------------------" - print(f"DISTRO INFORMATION:{divider[19:]}\n{distroInfo()}\n{divider}") + if sys.platform == 'linux': + print(f"DISTRO INFORMATION:{divider[19:]}\n{distroInfo()}\n{divider}") def setPath(self, key:str="Snark", pathKey:str="", pathVal:str=""): pathJSON = open("save/paths.json", "r") @@ -2255,14 +2256,15 @@ def upgradeJSON(self): theme = self.options.get("theme", "Freeman") goldSRCModelViewer = self.options.get("gsMV", {"selectedMV": 0, "csPath": ""}) linuxWinFix = self.options.get("linuxFix", "KDE") - # Detecting which version of Linux you're using for the Windowing fixes - cinnamonDesktops = ['linuxmint'] - try: - cinnamonDesktops.index(distroInfo()["ID"]) - linuxWinFix = 'Cinnamon' - except: - if distroInfo().get("VARIANT_ID", 'kde').lower() == "cinnamon": + if sys.platform == 'linux': + # Detecting which version of Linux you're using for the Windowing fixes + cinnamonDesktops = ['linuxmint'] + try: + cinnamonDesktops.index(distroInfo()["ID"]) linuxWinFix = 'Cinnamon' + except: + if distroInfo().get("VARIANT_ID", 'kde').lower() == "cinnamon": + linuxWinFix = 'Cinnamon' if self.options["version"] < 5: savePaths = True upgradePaths = True