summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-12-13 10:47:15 +0200
committerTor Lillqvist <tml@collabora.com>2022-12-13 10:43:43 +0000
commit9d3c6d56cee179ac01b2ff57a4129fc4c0a3da83 (patch)
treecb8e2faaeaa82b5739d2e9e8f3d6cc86abc0cb93 /sal
parentb6832a939623ad3b0ad61016344a432f47d1e97d (diff)
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 <tml@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/process_impl.cxx8
1 files changed, 8 insertions, 0 deletions
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
}
}