aboutsummaryrefslogtreecommitdiff
path: root/launcher/launch/steps/PostLaunchCommand.cpp
diff options
context:
space:
mode:
authorLennyMcLennington <lenny@sneed.church>2022-07-23 18:06:12 +0100
committerGitHub <noreply@github.com>2022-07-23 18:06:12 +0100
commit4596e78df0bc85cd1cffab01c973f6d4cb490319 (patch)
treecb1546e057086dd93f063518c3d644fcd8d60955 /launcher/launch/steps/PostLaunchCommand.cpp
parent6aad750fe037cfdc46db846e6cc507f112f745ed (diff)
parentba7dfb360c53b717b76ba7197ae40d2f9f59a659 (diff)
downloadPrismLauncher-4596e78df0bc85cd1cffab01c973f6d4cb490319.tar.gz
PrismLauncher-4596e78df0bc85cd1cffab01c973f6d4cb490319.tar.bz2
PrismLauncher-4596e78df0bc85cd1cffab01c973f6d4cb490319.zip
Merge pull request #952 from Scrumplex/fix-pre-post-launch
Fix variable substitution in pre launch/post exit hooks
Diffstat (limited to 'launcher/launch/steps/PostLaunchCommand.cpp')
-rw-r--r--launcher/launch/steps/PostLaunchCommand.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/launcher/launch/steps/PostLaunchCommand.cpp b/launcher/launch/steps/PostLaunchCommand.cpp
index cf765bc0..ccf07f22 100644
--- a/launcher/launch/steps/PostLaunchCommand.cpp
+++ b/launcher/launch/steps/PostLaunchCommand.cpp
@@ -56,9 +56,10 @@ void PostLaunchCommand::executeTask()
const QString program = args.takeFirst();
m_process.start(program, args);
#else
- QString postlaunch_cmd = m_parent->substituteVariables(m_command);
- emit logLine(tr("Running Post-Launch command: %1").arg(postlaunch_cmd), MessageLevel::Launcher);
- m_process.start(postlaunch_cmd);
+ m_parent->substituteVariables(m_command);
+
+ emit logLine(tr("Running Post-Launch command: %1").arg(m_command), MessageLevel::Launcher);
+ m_process.start(m_command);
#endif
}