From feb601b75142f3234bb51f9566a70c4db488a061 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 20 Jan 2018 18:51:13 +0100 Subject: iOS, allow unorc to be read One reason why init did not work, was that it did a throw due to a wrong path on unorc Change-Id: I928f25358befe05f8986e9ebcffda27e8beb397c --- desktop/source/app/appinit.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index 853eaf8734ae..826c525eb6c1 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -80,6 +80,13 @@ void Desktop::InitApplicationServiceManager() sm.set( cppu::defaultBootstrap_InitialComponentContext( aUnoRc )->getServiceManager(), UNO_QUERY_THROW); +#elif defined(IOS) + OUString uri( "$APP_DATA_DIR" ); + rtl_bootstrap_expandMacros( &uri.pData ); + OUString aUnoRc("file://" + uri + "/unorc"); + sm.set( + cppu::defaultBootstrap_InitialComponentContext( aUnoRc )->getServiceManager(), + UNO_QUERY_THROW); #else sm.set( cppu::defaultBootstrap_InitialComponentContext()->getServiceManager(), -- cgit