From 9b4afbb460c0aab0039b6106b54f19ec90ffa592 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 23 Mar 2019 12:20:20 +0100 Subject: [PATCH] Disable potentially problematic module loads for online. Change-Id: Iaa30486977ad783e2af0f876d790f2a2b06904f9 --- kit/Kit.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kit/Kit.cpp b/kit/Kit.cpp index 7bdb2cd78..faf6ad4f8 100644 --- a/kit/Kit.cpp +++ b/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)