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

master
Marc Wäckerlin 13 years ago
parent 4a69424a38
commit 28d4e54a2a
  1. 7
      src/main.cxx

@ -435,6 +435,13 @@ int main(int argv, char** argc) try {
} }
QSslConfiguration::setDefaultConfiguration(sslConfig); QSslConfiguration::setDefaultConfiguration(sslConfig);
//............................................................................ //............................................................................
if (env.contains("QT_PLUGIN_PATH")) {
std::cerr<<"**** Setting: PLUGIN-PATH to "<<env["QT_PLUGIN_PATH"]<<std::endl;
app.addLibraryPath(env["QT_PLUGIN_PATH"]);
} else {
std::cerr<<"**** Error: PLUGIN-PATH is not defined"<<std::endl;
abort();
}
if (env.contains("QTWEBKIT_PLUGIN_PATH")) qt_drt_overwritePluginDirectories(); if (env.contains("QTWEBKIT_PLUGIN_PATH")) qt_drt_overwritePluginDirectories();
Browser browser(actlib, urls, settings.get(), mimetypes, silent, Browser browser(actlib, urls, settings.get(), mimetypes, silent,
login, quirks, bookmarks); login, quirks, bookmarks);

Loading…
Cancel
Save