Группа :: Графические оболочки/KDE
Пакет: kdelibs
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kdelibs-3.3.0-alt_la2so_load_module.patch
--- kdelibs-3.3/kdecore/kstandarddirs.cpp.orig 2004-09-27 20:25:05 +0400
+++ kdelibs-3.3/kdecore/kstandarddirs.cpp 2004-09-27 20:27:09 +0400
@@ -288,6 +288,13 @@ QString KStandardDirs::findResource( con
if (filename.at(0) == '/')
return filename; // absolute dirs are absolute dirs, right? :-/
+ QString newFilename(filename);
+ if ( strcmp(type, "module") == 0 )
+ {
+ if (newFilename.right(3) == ".la")
+ newFilename = newFilename.replace( newFilename.length() - 3, 3, ".so" );
+ }
+
#if 0
kdDebug() << "Find resource: " << type << endl;
for (QStringList::ConstIterator pit = prefixes.begin();
@@ -298,10 +305,10 @@ for (QStringList::ConstIterator pit = pr
}
#endif
- QString dir = findResourceDir(type, filename);
+ QString dir = findResourceDir(type, newFilename);
if (dir.isEmpty())
return dir;
- else return dir + filename;
+ else return dir + newFilename;
}
static Q_UINT32 updateHash(const QString &file, Q_UINT32 hash)