This commit is contained in:
DavidXanatos 2023-05-27 17:30:01 +02:00
parent b84beed70c
commit d66406f904
2 changed files with 4 additions and 4 deletions

View File

@ -134,13 +134,13 @@ void CSandBox::SetBoxPaths(const QString& FilePath, const QString& RegPath, cons
m_IpcPath = IpcPath;
}
SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated)
SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated, const QString& WorkingDir)
{
#ifdef _DEBUG
if ((QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier) != 0)
return RunSandboxed(Command);
#endif
return m_pAPI->RunStart(m_Name, Command, Elevated);
return m_pAPI->RunStart(m_Name, Command, Elevated, WorkingDir);
}
SB_STATUS CSandBox::RunSandboxed(const QString& Command)

View File

@ -51,7 +51,7 @@ public:
virtual int GetActiveProcessCount() const { return m_ActiveProcessCount; }
virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false);
virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false, const QString& WorkingDir = QString());
virtual SB_STATUS RunSandboxed(const QString& Command);
virtual SB_STATUS TerminateAll();
@ -103,4 +103,4 @@ protected:
};
typedef QSharedPointer<CSandBox> CSandBoxPtr;
typedef QWeakPointer<CSandBox> CSandBoxRef;
typedef QWeakPointer<CSandBox> CSandBoxRef;