From 80851470316db2cf559806964f7c9b8c6a459fb1 Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Sun, 15 Oct 2023 17:44:21 -0400 Subject: [PATCH] Add path modifications for appimage based linux build --- app/src/kernel/core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/kernel/core.cpp b/app/src/kernel/core.cpp index 6aade86..ea04ca6 100644 --- a/app/src/kernel/core.cpp +++ b/app/src/kernel/core.cpp @@ -337,6 +337,12 @@ void Core::attachFlashpoint(std::unique_ptr flashpointInstall) de.insert(u"FP_STARTUP_PATH"_s, winFpPath + u"\\FPSoftware"_s); de.insert(u"FP_BROWSER_PLUGINS"_s, winFpPath + u"\\FPSoftware\\BrowserPlugins"_s); de.insert(u"WINEPREFIX"_s, fpPath + u"/FPSoftware/Wine"_s); + + // Rootless/Steamdeck specific build path edits (won't affect the regular Linux build) + QString pathValue = de.value(u"PATH"_s); + pathValue.prepend(fpPath + u"/FPSoftware/FPWine/bin:"_s + fpPath + u"/FPSoftware/FPQemuPHP:"_s); + de.insert(u"PATH"_s, pathValue); + qputenv("PATH", pathValue.toLocal8Bit()); // Path needs to be updated for self as well #endif TExec::setDefaultProcessEnvironment(de);