diff --git a/WheelWizard/Services/Launcher/Helpers/DolphinLaunchHelper.cs b/WheelWizard/Services/Launcher/Helpers/DolphinLaunchHelper.cs index bb37fbe1..687aa598 100644 --- a/WheelWizard/Services/Launcher/Helpers/DolphinLaunchHelper.cs +++ b/WheelWizard/Services/Launcher/Helpers/DolphinLaunchHelper.cs @@ -125,10 +125,12 @@ public static void LaunchDolphin(string arguments = "", bool shellExecute = fals startInfo.ArgumentList.Add("sh"); startInfo.ArgumentList.Add("-c"); startInfo.ArgumentList.Add("--"); - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && - PathManager.IsFlatpakDolphinFilePath()) + if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { - dolphinLocation = FixFlatpakDolphinPermissions(dolphinLocation); + if (PathManager.IsFlatpakDolphinFilePath()) + dolphinLocation = FixFlatpakDolphinPermissions(dolphinLocation); + else + startInfo.EnvironmentVariables["QT_QPA_PLATFORM"] = "xcb"; } startInfo.ArgumentList.Add($"{dolphinLocation} {dolphinLaunchArguments}"); startInfo.UseShellExecute = false;