mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Merge pull request #1555 from Trial97/env_vars
correctly expand env vars for pre/post launch commands
This commit is contained in:
commit
7a1dc0e9c9
5 changed files with 60 additions and 29 deletions
|
|
@ -131,6 +131,7 @@ void LauncherPartLaunch::executeTask()
|
|||
|
||||
QString wrapperCommandStr = instance->getWrapperCommand().trimmed();
|
||||
if (!wrapperCommandStr.isEmpty()) {
|
||||
wrapperCommandStr = m_parent->substituteVariables(wrapperCommandStr);
|
||||
auto wrapperArgs = Commandline::splitArgs(wrapperCommandStr);
|
||||
auto wrapperCommand = wrapperArgs.takeFirst();
|
||||
auto realWrapperCommand = QStandardPaths::findExecutable(wrapperCommand);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue