summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-28 14:19:30 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-28 14:37:24 +0100
commit546c7baec791aa3027a45cdde6c4c02bc073d002 (patch)
treef30aa57bdac5f58f0628118f246d20d1be94de02 /vcl/source/app/svapp.cxx
parent879aa54e895a56cb65f93ae98e6a9e7b08981a47 (diff)
vcl: don't do expensive desktop probing in headless mode.
Change-Id: I10d6493997b4f3bfab769340c990c01a26f3da20
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r--vcl/source/app/svapp.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index f9fee0b6220e..80ca354e790c 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1599,7 +1599,13 @@ bool Application::GetShowImeStatusWindowDefault()
const OUString& Application::GetDesktopEnvironment()
{
- return SalGetDesktopEnvironment();
+ if (IsHeadlessModeEnabled())
+ {
+ static OUString aNone("none");
+ return aNone;
+ }
+ else
+ return SalGetDesktopEnvironment();
}
void Application::AddToRecentDocumentList(const OUString& rFileUrl, const OUString& rMimeType, const OUString& rDocumentService)