Skip to content

Commit

Permalink
Add path modifications for appimage based linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Oct 15, 2023
1 parent 3f5a5ab commit 68d243c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/kernel/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ void Core::attachFlashpoint(std::unique_ptr<Fp::Install> 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(qPrintable(pathValue), pathValue.toLocal8Bit()); // Path needs to be updated for self as well
#endif

TExec::setDefaultProcessEnvironment(de);
Expand Down

0 comments on commit 68d243c

Please sign in to comment.