¡Hola Matthias! El 2018-03-11 a las 10:01 +0100, luca escribió:
Package: plasma-discover Version: 5.12.2-1 Severity: normal
on start discover return this error:
org.kde.knewstuff.core: Could not find category "KAddressbook Theme" invalid kns backend! "/etc/xdg/kaddressbook_themes.knsrc" because: "All categories are missing" Discarding invalid backend "kaddressbook_themes.knsrc" qrc:/qml/DiscoverDrawer.qml:145: TypeError: Cannot read property 'name' of null kns error "/etc/xdg/kaddressbook_themes.knsrc" "Invalid Kaddressbook_themes backend, contact your distributor." qml: message: kaddressbook_themes.knsrc: Invalid Kaddressbook_themes backend, contact your distributor.
Matthias is the expert regarding plasma-discover, but it seems to me that it could skip the backend if it's invalid. Something like this:
diff --git a/libdiscover/Category/CategoryModel.cpp b/libdiscover/Category/CategoryModel.cpp index 2e6835b5..b9876938 100644 --- a/libdiscover/Category/CategoryModel.cpp +++ b/libdiscover/Category/CategoryModel.cpp @@ -49,6 +49,9 @@ void CategoryModel::populateCategories() QVector<Category*> ret; CategoriesReader cr; Q_FOREACH (const auto backend, backends) { + if (!backend->isValid()) { + continue; + } const QVector<Category*> cats = cr.loadCategoriesFile(backend); if(ret.isEmpty()) { I guess this kind of errors could happend by a network hiccup. Happy hacking, --A computer scientist is someone who, when told to "Go to Hell," sees the "go to," rather than the destination, as harmful.
Saludos /\/\ /\ >< `/
signature.asc
Description: PGP signature