fix search paths
This commit is contained in:
parent
c9e6b7ed81
commit
d3579c6262
@ -514,15 +514,15 @@ void DeviceManager::loadPlugins()
|
|||||||
{
|
{
|
||||||
|
|
||||||
QStringList searchDirs;
|
QStringList searchDirs;
|
||||||
searchDirs << QCoreApplication::applicationDirPath() + "/../lib/guh";
|
searchDirs << QCoreApplication::applicationDirPath() + "/../lib/guh/guh";
|
||||||
searchDirs << QCoreApplication::applicationDirPath() + "/../";
|
searchDirs << QCoreApplication::applicationDirPath() + "/../plugins/deviceplugins";
|
||||||
searchDirs << QCoreApplication::applicationDirPath() + "/../../../";
|
searchDirs << QCoreApplication::applicationDirPath() + "/../../../plugins/deviceplugins";
|
||||||
|
|
||||||
foreach (const QString &path, searchDirs) {
|
foreach (const QString &path, searchDirs) {
|
||||||
QDir dir(path + "/plugins/deviceplugins");
|
QDir dir(path);
|
||||||
qDebug() << "Loading plugins from:" << dir.absolutePath();
|
qDebug() << "Loading plugins from:" << dir.absolutePath();
|
||||||
foreach (const QString &entry, dir.entryList()) {
|
foreach (const QString &entry, dir.entryList()) {
|
||||||
QFileInfo fi(path + "/plugins/deviceplugins/" + entry + "/libguh_deviceplugin" + entry + ".so");
|
QFileInfo fi(path + "/" + entry + "/libguh_deviceplugin" + entry + ".so");
|
||||||
if (!fi.exists()) {
|
if (!fi.exists()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user