Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit b946520f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Also complain if just kns backends are installed

BUG: 394050
parent 4c003d44
......@@ -138,8 +138,12 @@ DiscoverObject::DiscoverObject(CompactMode mode)
auto action = new OneTimeAction(
[this]() {
if (ResourcesModel::global()->backends().isEmpty())
Q_EMIT openErrorPage(i18n("No Discover back-ends found, please report to your distribution."));
bool found = DiscoverBackendsFactory::hasRequestedBackends();
for (auto b : ResourcesModel::global()->backends())
found |= b->hasApplications();
if (!found)
Q_EMIT openErrorPage(i18n("No application back-ends found, please report to your distribution."));
, this);
......@@ -40,6 +40,11 @@ void DiscoverBackendsFactory::setRequestedBackends(const QStringList& backends)
*s_requestedBackends = backends;
bool DiscoverBackendsFactory::hasRequestedBackends()
return !s_requestedBackends->isEmpty();
......@@ -42,6 +42,7 @@ public:
static void setupCommandLine(QCommandLineParser* parser);
static void processCommandLine(QCommandLineParser* parser, bool test);
static void setRequestedBackends(const QStringList &backends);
static bool hasRequestedBackends();
QVector<AbstractResourcesBackend*> backendForFile(const QString& path, const QString& name) const;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment