sal/osl/unx/process_impl.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9d3c6d56cee179ac01b2ff57a4129fc4c0a3da83
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Tue Dec 13 10:47:15 2022 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Dec 13 10:43:43 2022 +0000

    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 <t...@collabora.com>

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
 }
 
 }

Reply via email to