diff --git a/indicator/main.cpp b/indicator/main.cpp index 92ae40387..604ced3fd 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef QSYSTRAY #include @@ -58,6 +59,10 @@ int main(int argc, char** argv) DevicesModel model; model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired); +#ifdef Q_OS_WIN + QProcess::startDetached("kdeconnectd.exe"); +#endif + QMenu *menu = new QMenu; DaemonDbusInterface iface; @@ -68,6 +73,9 @@ int main(int argc, char** argv) KCMultiDialog dialog; dialog.addModule("kcm_kdeconnect"); dialog.exec(); +#ifdef Q_OS_WIN + QProcess::startDetached("kdeconnectd.exe"); +#endif }); for (int i=0, count = model.rowCount(); i