Disable potentially problematic module loads for online.
Change-Id: Iaa30486977ad783e2af0f876d790f2a2b06904f9
This commit is contained in:
parent
cadcc6e166
commit
9b4afbb460
1 changed files with 12 additions and 0 deletions
12
kit/Kit.cpp
12
kit/Kit.cpp
|
@ -2655,6 +2655,18 @@ bool globalPreinit(const std::string &loTemplate)
|
|||
LOG_FTL("No libreofficekit_hook_2 symbol in " << loadedLibrary << ": " << dlerror());
|
||||
}
|
||||
|
||||
// Disable problematic components that may be present from a
|
||||
// desktop or developer's install if env. var not set.
|
||||
::setenv("UNODISABLELIBRARY",
|
||||
"abp avmediagst avmediavlc cmdmail losessioninstall OGLTrans PresenterScreen "
|
||||
"syssh ucpftp1 ucpgio1 ucphier1 ucpimage updatecheckui updatefeed updchk"
|
||||
// Database
|
||||
"dbaxml dbmm dbp dbu deployment firebird_sdbc fps_office mork "
|
||||
"mysql mysqlc odbc postgresql-sdbc postgresql-sdbc-impl sdbc2 sdbt"
|
||||
// Java
|
||||
"javaloader javavm jdbc rpt rptui rptxml ",
|
||||
0 /* no overwrite */);
|
||||
|
||||
LOG_TRC("Invoking lok_preinit(" << loTemplate << "/program\", \"file:///user\")");
|
||||
const auto start = std::chrono::steady_clock::now();
|
||||
if (preInit((loTemplate + "/program").c_str(), "file:///user") != 0)
|
||||
|
|
Loading…
Reference in a new issue