summaryrefslogtreecommitdiff
path: root/desktop/source/app
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/app')
-rw-r--r--desktop/source/app/app.cxx5
-rw-r--r--desktop/source/app/check_ext_deps.cxx4
2 files changed, 6 insertions, 3 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index b436adea9dfe..c11909f9edd9 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -18,6 +18,7 @@
*/
#include <config_features.h>
+#include <config_folders.h>
#include "sal/config.h"
@@ -240,10 +241,10 @@ void removeTree(OUString const & url) {
// UserInstallation can be poisoned by old junk any more.
bool cleanExtensionCache() {
OUString buildId(
- "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("version") ":buildid}");
+ "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("version") ":buildid}");
rtl::Bootstrap::expandMacros(buildId); //TODO: detect failure
OUString extDir(
- "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
+ "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap")
":UserInstallation}/user/extensions");
rtl::Bootstrap::expandMacros(extDir); //TODO: detect failure
OUString buildIdFile(extDir + "/buildid");
diff --git a/desktop/source/app/check_ext_deps.cxx b/desktop/source/app/check_ext_deps.cxx
index fbaf3e1eae63..4f834d32c6f4 100644
--- a/desktop/source/app/check_ext_deps.cxx
+++ b/desktop/source/app/check_ext_deps.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_folders.h>
+
#include "osl/file.hxx"
#include "osl/mutex.hxx"
@@ -346,7 +348,7 @@ static bool impl_needsCompatCheck()
{
bool bNeedsCheck = false;
OUString aLastCheckBuildID;
- OUString aCurrentBuildID( "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("version") ":buildid}" );
+ OUString aCurrentBuildID( "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("version") ":buildid}" );
rtl::Bootstrap::expandMacros( aCurrentBuildID );
try {