kdeconnectd: trigger indicator when daemon is spawned on Windows

This commit is contained in:
Piyush Aggarwal 2021-06-15 13:35:00 +05:30
parent 62e02180df
commit 9031ccadc3

View file

@ -163,6 +163,11 @@ int main(int argc, char* argv[])
DesktopDaemon daemon;
#ifdef Q_OS_WIN
// make sure indicator shows up in the tray whenever daemon is spawned
QProcess::startDetached(QStringLiteral("kdeconnect-indicator.exe"));
#endif
// kdeconnectd is autostarted, so disable session management to speed up startup
auto disableSessionManagement = [](QSessionManager &sm) {
sm.setRestartHint(QSessionManager::RestartNever);