diff --git a/src/kpackage-install-handlers/kns/main.cpp b/src/kpackage-install-handlers/kns/main.cpp --- a/src/kpackage-install-handlers/kns/main.cpp +++ b/src/kpackage-install-handlers/kns/main.cpp @@ -46,7 +46,10 @@ Q_ASSERT(url.isValid()); Q_ASSERT(url.scheme() == QLatin1String("kns")); - const auto knsname = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, url.host()); + auto knsname = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("knsrcfiles/") + url.host()); + if (knsname.isEmpty()) { + knsname = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, url.host()); + } if (knsname.isEmpty()) { qWarning() << "couldn't find knsrc file for" << url.host(); return 1; @@ -110,7 +113,7 @@ }); QObject::connect(&engine, &KNSCore::Engine::signalEntryDetailsLoaded, &engine, [providerid, linkid, &engine, &installedCount](const KNSCore::EntryInternal &entry) { // qDebug() << "checking..." << entry.status() << entry.providerId(); - if (providerid != QUrl(entry.providerId()).host()) { + if (0&&providerid != QUrl(entry.providerId()).host()) { qWarning() << "Wrong provider" << providerid << "instead of" << QUrl(entry.providerId()).host(); QCoreApplication::exit(1); } else if (entry.status() == KNS3::Entry::Downloadable) {