From 629dfff3c7289f185268c7088e67931f6bbd9ce0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Aug 2019 09:16:55 +0200 Subject: Replace is_soffice_Impl hack with a better(?) hack ...that involves adding a second, one-off special meaning to the existing sal_detail_initialize function. This at least gets rid of the "osl_getExecutableFile contains 'soffice' substring" guesswork (and of the osl_systemPathGetFileNameOrLastDirectoryPart call there, which is what I'm actually after, for a different change to come). Change-Id: I4dd6eef1fd0411bf66943ffea415876c92d08526 Reviewed-on: https://gerrit.libreoffice.org/78291 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- desktop/source/app/sofficemain.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop/source/app/sofficemain.cxx') diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 805c4f07602e..2a692fdae8d4 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -108,6 +109,8 @@ static bool dumpCallback(const wchar_t* path, const wchar_t* id, #endif extern "C" int DESKTOP_DLLPUBLIC soffice_main() { + sal_detail_initialize(sal::detail::InitializeSoffice, nullptr); + #if HAVE_FEATURE_BREAKPAD #if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID -- cgit