From 0206e5b938b1ac3925bcd67d57db3e43c53e67e3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 14 Mar 2017 11:42:13 +0100 Subject: Always fork KIO slaves --- examples/davresource/davresource.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/davresource/davresource.cpp') diff --git a/examples/davresource/davresource.cpp b/examples/davresource/davresource.cpp index 3d23a04..63b254f 100644 --- a/examples/davresource/davresource.cpp +++ b/examples/davresource/davresource.cpp @@ -235,6 +235,11 @@ public: DavResource::DavResource(const Sink::ResourceContext &resourceContext) : Sink::GenericResource(resourceContext) { + /* + * Fork KIO slaves (used in kdav), instead of starting them via klauncher. + * Otherwise we have yet another runtime dependency that will i.e. not work in the docker container. + */ + qputenv("KDE_FORK_SLAVES", "TRUE"); auto config = ResourceConfig::getConfiguration(resourceContext.instanceId()); auto resourceUrl = QUrl::fromUserInput(config.value("resourceUrl").toString()); resourceUrl.setUserName(config.value("username").toString()); -- cgit v1.2.3