Revert "macOS: launch kdeconnectd with start instead of startDetached"
It breaks the start for some reason.
This reverts commit 2c572cf32c
.
This commit is contained in:
parent
87660747b5
commit
760bd5a437
1 changed files with 4 additions and 3 deletions
|
@ -135,12 +135,13 @@ int IndicatorHelper::daemonHook(QProcess &kdeconnectd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start kdeconnectd, the daemon will not duplicate when there is already one
|
// Start kdeconnectd, the daemon will not duplicate when there is already one
|
||||||
QString daemonPath = QCoreApplication::applicationDirPath() + QLatin1String("/kdeconnectd");
|
if (QString daemon = QCoreApplication::applicationDirPath() + QLatin1String("/kdeconnectd"); QFile::exists(daemon)) {
|
||||||
if (!QFile::exists(daemonPath)) {
|
kdeconnectd.setProgram(daemon);
|
||||||
|
} else {
|
||||||
QMessageBox::critical(nullptr, i18n("KDE Connect"), i18n("Cannot find kdeconnectd"), QMessageBox::Abort, QMessageBox::Abort);
|
QMessageBox::critical(nullptr, i18n("KDE Connect"), i18n("Cannot find kdeconnectd"), QMessageBox::Abort, QMessageBox::Abort);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
kdeconnectd.start(daemonPath, QStringList());
|
kdeconnectd.startDetached();
|
||||||
|
|
||||||
m_splashScreen->showMessage(i18n("Loading modules") + QStringLiteral("\n"), Qt::AlignHCenter | Qt::AlignBottom, Qt::white);
|
m_splashScreen->showMessage(i18n("Loading modules") + QStringLiteral("\n"), Qt::AlignHCenter | Qt::AlignBottom, Qt::white);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue