From c6a73009747814513ab5a7277c211449c7378870 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 16 Aug 2013 11:08:32 +0300 Subject: Use subfolder names from Change all instances of hardcoded "program", "share" etc subfolder names to use those from instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53 --- uui/source/newerverwarn.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'uui') diff --git a/uui/source/newerverwarn.cxx b/uui/source/newerverwarn.cxx index 8e4877a58b9c..5f96cdb2d94f 100644 --- a/uui/source/newerverwarn.cxx +++ b/uui/source/newerverwarn.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include +#include + #include "newerverwarn.hxx" #include "newerverwarn.hrc" #include "ids.hrc" @@ -78,7 +81,10 @@ IMPL_LINK_NOARG(NewerVersionWarningDialog, UpdateHdl) // read keys from soffice.ini (sofficerc) OUString sIniFileName = sProgramPath; - sIniFileName += OUString( SAL_CONFIGFILE( "version" ) ); +#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE + sIniFileName += "../" LIBO_ETC_FOLDER "/"; +#endif + sIniFileName += SAL_CONFIGFILE( "version" ); ::rtl::Bootstrap aIniFile( sIniFileName ); OUString sNotifyURL; aIniFile.getFrom( OUString( "ODFNotifyURL" ), sNotifyURL ); -- cgit