parent
7a3f9af136
commit
2f98646e94
2 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,7 @@ void DBusInstancePrivate::launchDBusDaemon()
|
||||||
m_dbusProcess->setStandardOutputFile(KdeConnectConfig::instance().privateDBusAddressPath());
|
m_dbusProcess->setStandardOutputFile(KdeConnectConfig::instance().privateDBusAddressPath());
|
||||||
m_dbusProcess->setStandardErrorFile(QProcess::nullDevice());
|
m_dbusProcess->setStandardErrorFile(QProcess::nullDevice());
|
||||||
m_dbusProcess->start();
|
m_dbusProcess->start();
|
||||||
|
m_dbusProcess->waitForStarted(); // Avoid potential racing condition
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// Set launchctl env
|
// Set launchctl env
|
||||||
|
|
|
@ -112,6 +112,8 @@ int IndicatorHelper::daemonHook(QProcess &kdeconnectd)
|
||||||
"KDE Connect will quit"),
|
"KDE Connect will quit"),
|
||||||
QMessageBox::Abort,
|
QMessageBox::Abort,
|
||||||
QMessageBox::Abort);
|
QMessageBox::Abort);
|
||||||
|
// End the program
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
// Show a warning and exit
|
// Show a warning and exit
|
||||||
qCritical() << "Fail to get launchctl" << KDECONNECT_SESSION_DBUS_LAUNCHD_ENV << "env";
|
qCritical() << "Fail to get launchctl" << KDECONNECT_SESSION_DBUS_LAUNCHD_ENV << "env";
|
||||||
|
|
Loading…
Reference in a new issue