Fix writing the flag file

Change-Id: Id2eef64b52ac0f7c48dc090ed3ce41f5cde6b775
This commit is contained in:
Samuel Mehrbrodt
2016-10-12 10:43:55 +02:00
parent a1261b63f2
commit d690066575

View File

@@ -45,11 +45,12 @@ bool SafeMode::removeFlag()
OUString SafeMode::getFileName()
{
OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/safemode");
OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/");
rtl::Bootstrap::expandMacros(url);
OUString aProfilePath;
FileBase::getSystemPathFromFileURL(url, aProfilePath);
FileBase::getAbsoluteFileURL(url, "safemode", aProfilePath);
return aProfilePath;
}