kcmutils: print plugin name when loading fails
This commit is contained in:
parent
fc72335570
commit
7af16e5bd7
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
mkDerivation, lib,
|
mkDerivation, lib, copyPathsToStore,
|
||||||
extra-cmake-modules,
|
extra-cmake-modules,
|
||||||
kconfigwidgets, kcoreaddons, kdeclarative, ki18n, kiconthemes, kitemviews,
|
kconfigwidgets, kcoreaddons, kdeclarative, ki18n, kiconthemes, kitemviews,
|
||||||
kpackage, kservice, kxmlgui, qtdeclarative,
|
kpackage, kservice, kxmlgui, qtdeclarative,
|
||||||
@ -14,5 +14,5 @@ mkDerivation {
|
|||||||
qtdeclarative
|
qtdeclarative
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ kconfigwidgets kservice ];
|
propagatedBuildInputs = [ kconfigwidgets kservice ];
|
||||||
patches = [ ./0001-qdiriterator-follow-symlinks.patch ];
|
patches = (copyPathsToStore (lib.readPathsFromFile ./. ./series));
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
Index: kcmutils-5.33.0/src/kcmoduleloader.cpp
|
||||||
|
===================================================================
|
||||||
|
--- kcmutils-5.33.0.orig/src/kcmoduleloader.cpp
|
||||||
|
+++ kcmutils-5.33.0/src/kcmoduleloader.cpp
|
||||||
|
@@ -96,7 +96,7 @@ KCModule *KCModuleLoader::loadModule(con
|
||||||
|
KPluginLoader loader(KPluginLoader::findPlugin(QLatin1String("kcms/") + mod.service()->library()));
|
||||||
|
KPluginFactory* factory = loader.factory();
|
||||||
|
if (!factory) {
|
||||||
|
- qWarning() << "Error loading plugin:" << loader.errorString();
|
||||||
|
+ qWarning() << "Error loading KCM plugin" << mod.service()->library() << loader.errorString();
|
||||||
|
} else {
|
||||||
|
KQuickAddons::ConfigModule *cm = factory->create<KQuickAddons::ConfigModule >();
|
||||||
|
if (!cm) {
|
@ -1,17 +1,8 @@
|
|||||||
From f14d2a275323a47104b33eb61c5b6910ae1a9f59 Mon Sep 17 00:00:00 2001
|
Index: kcmutils-5.33.0/src/kpluginselector.cpp
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
===================================================================
|
||||||
Date: Wed, 14 Oct 2015 06:43:53 -0500
|
--- kcmutils-5.33.0.orig/src/kpluginselector.cpp
|
||||||
Subject: [PATCH] qdiriterator follow symlinks
|
+++ kcmutils-5.33.0/src/kpluginselector.cpp
|
||||||
|
@@ -305,7 +305,7 @@ void KPluginSelector::addPlugins(const Q
|
||||||
---
|
|
||||||
src/kpluginselector.cpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/kpluginselector.cpp b/src/kpluginselector.cpp
|
|
||||||
index 9c3431d..d6b1ee2 100644
|
|
||||||
--- a/src/kpluginselector.cpp
|
|
||||||
+++ b/src/kpluginselector.cpp
|
|
||||||
@@ -305,7 +305,7 @@ void KPluginSelector::addPlugins(const QString &componentName,
|
|
||||||
QStringList desktopFileNames;
|
QStringList desktopFileNames;
|
||||||
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
|
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
|
||||||
Q_FOREACH (const QString &dir, dirs) {
|
Q_FOREACH (const QString &dir, dirs) {
|
||||||
@ -20,6 +11,3 @@ index 9c3431d..d6b1ee2 100644
|
|||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
desktopFileNames.append(it.next());
|
desktopFileNames.append(it.next());
|
||||||
}
|
}
|
||||||
--
|
|
||||||
2.5.2
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
kcmutils-follow-symlinks.patch
|
||||||
|
kcmutils-debug-module-loader.patch
|
Loading…
Reference in New Issue
Block a user