# HG changeset patch # User Chris Cannam # Date 1568708907 -3600 # Node ID 2a810ed46977f22038ddc429d6d64c9571fffed6 # Parent 008e413f6aaf6d95910a24904da450ff749c2b21 Lib dir name is usually the same as the binary name, not the formal application name diff -r 008e413f6aaf -r 2a810ed46977 base/HelperExecPath.cpp --- a/base/HelperExecPath.cpp Mon Sep 16 14:23:17 2019 +0100 +++ b/base/HelperExecPath.cpp Tue Sep 17 09:28:27 2019 +0100 @@ -72,11 +72,13 @@ QStringList dirs; QString appName = QCoreApplication::applicationName(); + QString binaryName = QCoreApplication::arguments().at(0); QString myDir = QCoreApplication::applicationDirPath(); #ifdef Q_OS_MAC dirs.push_back(myDir + "/../Resources"); #else #ifndef Q_OS_WIN32 + dirs.push_back(myDir + "/../lib/" + binaryName); dirs.push_back(myDir + "/../lib/" + appName); #endif dirs.push_back(myDir + "/helpers");