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>2023-02-24 07:57:46 +0000
commit701f0037383d9e10befec710d2a59e9adc91e588 (patch)
tree178eae058bc7693cd8ceea5b50f7ed9b91f4e1fb /sal
parentb7bcd8b77006922e2df5388b67c0d73f3db72ce3 (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147563 Tested-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
}
}