diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-23 15:32:47 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-23 17:12:03 +0000 |
commit | 91c7d943e144deaf6146addb682e0283f9c3b070 (patch) | |
tree | 3abd2d44ab146b3b7a001778bdc30fa41cb278d3 /desktop | |
parent | 2d8a5940a0369127602fcc6144e9c31aae4917bd (diff) |
android: setup the unorc path correctly into assets
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/appinit.cxx | 7 |
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 ) |