summaryrefslogtreecommitdiff
path: root/desktop/source/app/sofficemain.cxx
diff options
context:
space:
mode:
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>2012-02-21 11:45:00 +0100
committerTor Lillqvist <tlillqvist@suse.com>2012-02-21 13:09:21 +0200
commitdac4874eb0a5f65aae2679b5fa0020154f84800d (patch)
tree1b5adf9df356ebc581302c962b9cc46169375e8c /desktop/source/app/sofficemain.cxx
parente125c8fa82beca36791e1bdeae116824f4bc7a7b (diff)
desktop: Don't call setIniFilename() for LIBO_HEADLESS
mmeeks suggests we don't want setIniFilename(), who am i to disagree? :)
Diffstat (limited to 'desktop/source/app/sofficemain.cxx')
-rw-r--r--desktop/source/app/sofficemain.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index 5ec3dd49c275..76562a32e630 100644
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -43,8 +43,10 @@ int SVMain();
extern "C" int DESKTOP_DLLPUBLIC soffice_main()
{
-#ifdef ANDROID
+#if defined(ANDROID) || defined(LIBO_HEADLESS)
+#if defined(ANDROID)
try {
+#endif
rtl::Bootstrap::setIniFilename(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///assets/program/lofficerc")));
#endif