summaryrefslogtreecommitdiff
path: root/desktop/source/app/appfirststart.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/app/appfirststart.cxx')
-rw-r--r--desktop/source/app/appfirststart.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/app/appfirststart.cxx b/desktop/source/app/appfirststart.cxx
index 1af0ac9abe67..471f77bca391 100644
--- a/desktop/source/app/appfirststart.cxx
+++ b/desktop/source/app/appfirststart.cxx
@@ -70,8 +70,10 @@ void Desktop::DoRestartActionsIfNecessary( sal_Bool bQuickStart )
sal_Bool bQuickstart = shouldLaunchQuickstart();
aSeq[0] <<= bQuickstart;
- Reference < XInitialization > xQuickstart( ::comphelper::getProcessServiceFactory()->createInstance(
- OUString( "com.sun.star.office.Quickstart" ) ),UNO_QUERY_THROW );
+ css::uno::Reference< css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ Reference < XInitialization > xQuickstart(
+ xContext->getServiceManager()->createInstanceWithContext("com.sun.star.office.Quickstart", xContext),
+ UNO_QUERY_THROW );
xQuickstart->initialize( aSeq );
}
}