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:
Albert Vaca Cintora 2024-09-13 15:37:12 +02:00
parent 87660747b5
commit 760bd5a437
No known key found for this signature in database

View file

@ -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);