Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 20 lines 1.1 kB view raw
1diff --git a/src/core/worker.cpp b/src/core/worker.cpp 2index da423731c..443c8db19 100644 3--- a/src/core/worker.cpp 4+++ b/src/core/worker.cpp 5@@ -343,13 +343,13 @@ Worker *Worker::createWorker(const QString &protocol, const QUrl &url, int &erro 6 return nullptr; 7 } 8 9- if (protocol == QLatin1String("admin") && !lib_path.startsWith(QLatin1String{KDE_INSTALL_FULL_KIO_PLUGINDIR})) { 10+ if (protocol == QLatin1String("admin") && !lib_path.startsWith(QLatin1String("/nix/store"))) { 11 error_text = i18nc("@info %2 and %3 are paths", 12 "The KIO worker for protocol “%1” in %2 was not loaded because all KIO workers which are located outside of %3 and ask for elevated " 13 "privileges are considered insecure.", 14 protocol, 15 lib_path, 16- QLatin1String{KDE_INSTALL_FULL_KIO_PLUGINDIR}); 17+ QLatin1String("/nix/store")); 18 error = KIO::ERR_CANNOT_CREATE_WORKER; 19 return nullptr; 20 }