From cfc1f8fd38866c4425c27a2736d989f94b25c98e Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 15 Jun 2016 20:37:42 +0200 Subject: [PATCH] Ask kio not to use klauncher/kdeinit to spawn slaves on Windows --- daemon/kdeconnectd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index e973115c4..1b7a84139 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -88,9 +88,13 @@ int main(int argc, char* argv[]) KDBusService dbusService(KDBusService::Unique); +#ifdef Q_OS_WIN + qputenv("KDE_FORK_SLAVES"); +#endif + Daemon* daemon = new DesktopDaemon; QObject::connect(daemon, SIGNAL(destroyed(QObject*)), &app, SLOT(quit())); - + #ifdef HAVE_TELEPATHY //keep a reference to the KTP CM so that we can register on DBus auto telepathyPlugin = KDEConnectTelepathyProtocolFactory::interface();