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 @@ using the XBEL format.") | ||||||
|                ;; make QDirIterator follow symlinks |                ;; make QDirIterator follow symlinks | ||||||
|                (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b) |                (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b) | ||||||
|                 (string-append a " | QDirIterator::FollowSymlinks" 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))))) |              #t))))) | ||||||
|     (inputs |     (inputs | ||||||
|      `(("kauth" ,kauth) |      `(("kauth" ,kauth) | ||||||
|  |  | ||||||
		Reference in a new issue