TEST - set plugin path, abort if env variable is not set; refs #130

master
Marc Wäckerlin 13 years ago
parent 472beaf7b5
commit 3c0a136a9b
  1. 2
      src/main.cxx

@ -435,11 +435,13 @@ int main(int argv, char** argc) try {
} }
QSslConfiguration::setDefaultConfiguration(sslConfig); QSslConfiguration::setDefaultConfiguration(sslConfig);
//............................................................................ //............................................................................
std::cerr<<"LIBRARY PATHES:\n"<<app.libraryPaths().join("\n").toStdString()<<std::endl;
if (env.contains("QT_PLUGIN_PATH")) { if (env.contains("QT_PLUGIN_PATH")) {
std::cerr<<"**** Setting: PLUGIN-PATH to "<<env["QT_PLUGIN_PATH"].toStdString()<<std::endl; std::cerr<<"**** Setting: PLUGIN-PATH to "<<env["QT_PLUGIN_PATH"].toStdString()<<std::endl;
app.addLibraryPath(env["QT_PLUGIN_PATH"]); app.addLibraryPath(env["QT_PLUGIN_PATH"]);
} else { } else {
std::cerr<<"**** Error: PLUGIN-PATH is not defined"<<std::endl; std::cerr<<"**** Error: PLUGIN-PATH is not defined"<<std::endl;
app.addLibraryPath("lib");
abort(); abort();
} }
if (env.contains("QTWEBKIT_PLUGIN_PATH")) qt_drt_overwritePluginDirectories(); if (env.contains("QTWEBKIT_PLUGIN_PATH")) qt_drt_overwritePluginDirectories();

Loading…
Cancel
Save