Look for plugins using KLibLoader::findLibrary.
Makefiles will be committed silently :) svn path=/trunk/kdebase/kwin/; revision=73404
This commit is contained in:
parent
3312f9098a
commit
d3c59a34aa
1 changed files with 3 additions and 3 deletions
|
@ -9,6 +9,7 @@ Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
|
|||
#include <kdesktopfile.h>
|
||||
#include <ksimpleconfig.h>
|
||||
#include <klocale.h>
|
||||
#include <klibloader.h>
|
||||
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue