Mercurial > hg > svcore
changeset 1782:2a810ed46977
Lib dir name is usually the same as the binary name, not the formal application name
| author | Chris Cannam | 
|---|---|
| date | Tue, 17 Sep 2019 09:28:27 +0100 | 
| parents | 008e413f6aaf | 
| children | cf3eb6252f42 | 
| files | base/HelperExecPath.cpp | 
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] | 
line wrap: on
 line diff
--- 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");
