diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-14 11:42:13 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-14 11:42:13 +0100 |
commit | 0206e5b938b1ac3925bcd67d57db3e43c53e67e3 (patch) | |
tree | 4da982d8b0a36376758be93546d943f192997d63 /examples/davresource | |
parent | 03154b7897e39c450a6b6958d557a46c0f7e5bdc (diff) | |
download | sink-0206e5b938b1ac3925bcd67d57db3e43c53e67e3.tar.gz sink-0206e5b938b1ac3925bcd67d57db3e43c53e67e3.zip |
Always fork KIO slaves
Diffstat (limited to 'examples/davresource')
-rw-r--r-- | examples/davresource/davresource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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: | |||
235 | DavResource::DavResource(const Sink::ResourceContext &resourceContext) | 235 | DavResource::DavResource(const Sink::ResourceContext &resourceContext) |
236 | : Sink::GenericResource(resourceContext) | 236 | : Sink::GenericResource(resourceContext) |
237 | { | 237 | { |
238 | /* | ||
239 | * Fork KIO slaves (used in kdav), instead of starting them via klauncher. | ||
240 | * Otherwise we have yet another runtime dependency that will i.e. not work in the docker container. | ||
241 | */ | ||
242 | qputenv("KDE_FORK_SLAVES", "TRUE"); | ||
238 | auto config = ResourceConfig::getConfiguration(resourceContext.instanceId()); | 243 | auto config = ResourceConfig::getConfiguration(resourceContext.instanceId()); |
239 | auto resourceUrl = QUrl::fromUserInput(config.value("resourceUrl").toString()); | 244 | auto resourceUrl = QUrl::fromUserInput(config.value("resourceUrl").toString()); |
240 | resourceUrl.setUserName(config.value("username").toString()); | 245 | resourceUrl.setUserName(config.value("username").toString()); |