From 701f0037383d9e10befec710d2a59e9adc91e588 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 13 Dec 2022 10:47:15 +0200 Subject: Add Emscripten ifdef to bootstrap_getExecutableFile() Change-Id: I15d31873a27ace544a76a64fe354edb97b144424 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144039 Tested-by: Jenkins Reviewed-by: Tor Lillqvist Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147563 Tested-by: Tor Lillqvist --- sal/osl/unx/process_impl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sal') diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index 5d7f7644feb0..a61df87c2cff 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -97,6 +97,13 @@ oslProcessError bootstrap_getExecutableFile(rtl_uString ** ppFileURL) { oslProcessError result = osl_Process_E_NotFound; +#ifdef EMSCRIPTEN + // Just return some dummy file: URL for now to see what happens + OUString fileURL = "vnd.sun.star.pathname:/instdir/program/soffice"; + rtl_uString_acquire(fileURL.pData); + *ppFileURL = fileURL.pData; + return osl_Process_E_None; +#else #ifdef ANDROID /* Now with just a single DSO, this one from lo-bootstrap.c is as good as * any */ @@ -136,6 +143,7 @@ oslProcessError bootstrap_getExecutableFile(rtl_uString ** ppFileURL) } return result; +#endif } } -- cgit