mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Add more plugin search paths for OS X
This commit is contained in:
parent
bb48852d87
commit
ce6e50b912
14
src/main.cpp
14
src/main.cpp
|
@ -94,7 +94,19 @@ int main(int argc, char *argv[])
|
|||
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
||||
a.addLibraryPath("platforms");
|
||||
#ifdef Q_OS_OSX
|
||||
a.addLibraryPath("../../PlugIns");
|
||||
QString startPath = a.applicationDirPath();
|
||||
QDir pluginsDir(startPath);
|
||||
pluginsDir.cdUp();
|
||||
pluginsDir.cd("PlugIns");
|
||||
a.addLibraryPath(pluginsDir.absolutePath());
|
||||
pluginsDir.cd(startPath);
|
||||
pluginsDir.cdUp();
|
||||
pluginsDir.cd("Plugins");
|
||||
a.addLibraryPath(pluginsDir.absolutePath());
|
||||
pluginsDir.cd(startPath);
|
||||
pluginsDir.cdUp();
|
||||
pluginsDir.cd("plugins");
|
||||
a.addLibraryPath(pluginsDir.absolutePath());
|
||||
#endif
|
||||
|
||||
qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
|
||||
|
|
Loading…
Reference in New Issue
Block a user