mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
committed by
Mathew Sutcliffe
parent
b80f204293
commit
5c37ccdbeb
@@ -14,6 +14,7 @@
|
|||||||
#include "blackmisc/registermetadata.h"
|
#include "blackmisc/registermetadata.h"
|
||||||
#include "blackmisc/network/networkutils.h"
|
#include "blackmisc/network/networkutils.h"
|
||||||
#include "blackmisc/dbusutils.h"
|
#include "blackmisc/dbusutils.h"
|
||||||
|
#include "blackmisc/processctrl.h"
|
||||||
#include "servicetool.h"
|
#include "servicetool.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
@@ -181,7 +182,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// testing in new process
|
// testing in new process
|
||||||
QProcess::startDetached(executable, args);
|
BlackMisc::CProcessCtrl::startDetached(executable, args, true);
|
||||||
|
|
||||||
// testing in same process
|
// testing in same process
|
||||||
// BlackSample::ServiceTool::dataTransferTestClient(address);
|
// BlackSample::ServiceTool::dataTransferTestClient(address);
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
const QString program = QStringLiteral("dbus-daemon");
|
const QString program = QStringLiteral("dbus-daemon");
|
||||||
const QStringList arguments = { QStringLiteral("--config-file=../etc/dbus-1/session.conf") };
|
const QStringList arguments = { QStringLiteral("--config-file=../etc/dbus-1/session.conf") };
|
||||||
bool success = CProcessCtrl::startDetachedWithoutConsole(program, arguments);
|
bool success = CProcessCtrl::startDetached(program, arguments, false);
|
||||||
if (!success) { CLogMessage(this).error("Failed to launch dbus-daemon!"); }
|
if (!success) { CLogMessage(this).error("Failed to launch dbus-daemon!"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user