summaryrefslogtreecommitdiff
path: root/desktop/source/app/appinit.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-23 15:32:47 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-23 17:12:03 +0000
commit91c7d943e144deaf6146addb682e0283f9c3b070 (patch)
tree3abd2d44ab146b3b7a001778bdc30fa41cb278d3 /desktop/source/app/appinit.cxx
parent2d8a5940a0369127602fcc6144e9c31aae4917bd (diff)
android: setup the unorc path correctly into assets
Diffstat (limited to 'desktop/source/app/appinit.cxx')
-rw-r--r--desktop/source/app/appinit.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index d988171664d9..076899dda687 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -185,9 +185,16 @@ Reference< XMultiServiceFactory > Desktop::CreateApplicationServiceManager()
{
RTL_LOGFILE_CONTEXT( aLog, "desktop (cd100003) ::createApplicationServiceManager" );
+#ifdef ANDROID
+ rtl::OUString aUnoRc( OUString( RTL_CONSTASCII_USTRINGPARAM( "file:///assets/program/unorc" ) ) );
+ return Reference<XMultiServiceFactory>(
+ cppu::defaultBootstrap_InitialComponentContext( aUnoRc )->getServiceManager(),
+ UNO_QUERY_THROW);
+#else
return Reference<XMultiServiceFactory>(
cppu::defaultBootstrap_InitialComponentContext()->getServiceManager(),
UNO_QUERY_THROW);
+#endif
}
void Desktop::DestroyApplicationServiceManager( Reference< XMultiServiceFactory >& xSMgr )