From 74b5dad201fcb804c7e3367d40910541c57ffaaf Mon Sep 17 00:00:00 2001 From: Mud <44410798+MudDev@users.noreply.github.com> Date: Mon, 18 May 2026 17:35:35 -0600 Subject: [PATCH] fix(config): accept 'linux' platform string in getStartDir The Linux release workflow runs `build.py --platform=linux` (.github/workflows/build-installers.yml:226), which writes `platform = 'linux'` into src/Build.py. Config.getStartDir() only matched 'libredesktop' or 'Linux' (capitalized), so the PyInstaller binary raised RuntimeError("UNKNOWN PLATFORM: linux") during Config.__init__ and the daemon never started. Source installs were unaffected because they set platform = 'source'. Add 'linux' (lowercase) to the accepted tuple so every official Linux release tarball boots. Keeping 'libredesktop' and 'Linux' for backwards compatibility with any out-of-tree builds. Fixes #33 --- src/Config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config.py b/src/Config.py index eaf8a8905..3d1a43fb6 100644 --- a/src/Config.py +++ b/src/Config.py @@ -245,7 +245,7 @@ def getStartDir(self): path = MACOSX_DIR elif self.platform == 'windows': path = WINDOWS_DIR - elif self.platform in ('libredesktop', 'Linux'): + elif self.platform in ('libredesktop', 'Linux', 'linux'): path = LIBREDESKTOP_DIR else: raise RuntimeError(f'UNKNOWN PLATFORM: {self.platform}. Something must have went terribly wrong!')