From d3590c37eb6ec97bc0ae2a715eb44d2f3510040f Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Tue, 11 Jul 2023 20:41:36 +0200 Subject: [PATCH] Revert "Do not autostart the UI from the daemon on Windows" This is here because the kdeconnect shortcut launches the app, not the systray. The app launches the daemon via dbus but without this, we don't have a systray. Ideally the systray and daemon would be the same process. Also ideally we would have a way to launch the daemon and systray at boot, so people don't have to launch the app just for the side effect of starting the daemon. This reverts commit 1dcfaf5108d4b96db1162fcc95990eae615e16f6. --- daemon/kdeconnectd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 2018ce4ef..d216098c5 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -171,6 +171,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);