From d3c59a34aa0161d4aec2ed7519161f98b4787d3b Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 4 Dec 2000 18:47:19 +0000 Subject: [PATCH] Look for plugins using KLibLoader::findLibrary. Makefiles will be committed silently :) svn path=/trunk/kdebase/kwin/; revision=73404 --- plugins.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins.cpp b/plugins.cpp index 78a3ccf752..c27530f72e 100644 --- a/plugins.cpp +++ b/plugins.cpp @@ -9,6 +9,7 @@ Copyright (C) 1999, 2000 Daniel M. Duley #include #include #include +#include // X11/Qt conflict #undef Unsorted @@ -146,10 +147,9 @@ void PluginMgr::loadPlugin(QString nameStr) dlregistered = true; lt_dlinit(); } - nameStr += ".la"; - nameStr = KGlobal::dirs()->findResource("lib", nameStr); + nameStr = KLibLoader::findLibrary(nameStr.latin1()); - if(!nameStr){ + if(nameStr.isNull()){ qWarning("KWin: cannot find client plugin."); handle = 0; alloc_ptr = NULL;