mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: kcmutils: Print plugin name when loading fails.
Transfer the NixOS patch "kcmutils-debug-module-loader" for kcmutils as of 2018-02-17. * gnu/packages/kde-frameworks.scm(kcmutils)<patch>: Add substitute for src/kcmoduleloader.cpp.
This commit is contained in:
parent
fd8c53cb9e
commit
be8cb44a9c
1 changed files with 4 additions and 0 deletions
|
@ -2097,6 +2097,10 @@ (define-public kcmutils
|
|||
;; make QDirIterator follow symlinks
|
||||
(("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
|
||||
(string-append a " | QDirIterator::FollowSymlinks" b)))
|
||||
(substitute* "src/kcmoduleloader.cpp"
|
||||
;; print plugin name when loading fails
|
||||
(("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c)
|
||||
(string-append a " KCM plugin\" << mod.service()->library() << \":\"" c)))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("kauth" ,kauth)
|
||||
|
|
Loading…
Reference in a new issue