summaryrefslogtreecommitdiff
path: root/tools/bootstrp
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2001-10-24 09:24:42 +0000
committerNils Fuhrmann <nf@openoffice.org>2001-10-24 09:24:42 +0000
commitfa1cb754b74b115a797863acb57a2928f5410b47 (patch)
treea41a19b753fc2a11098777c119118d61e1f52c69 /tools/bootstrp
parent51aa977c81fad5ffaa34d5a63fc8db073529e487 (diff)
Added functionality GetGlobalIni()
Diffstat (limited to 'tools/bootstrp')
-rw-r--r--tools/bootstrp/inimgr.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/bootstrp/inimgr.cxx b/tools/bootstrp/inimgr.cxx
index f2d75d03e258..c63679b1bdd7 100644
--- a/tools/bootstrp/inimgr.cxx
+++ b/tools/bootstrp/inimgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: inimgr.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:02:59 $
+ * last change: $Author: nf $ $Date: 2001-10-24 10:24:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,7 +119,7 @@ IniManager::IniManager()
mkdir( sLocalPath.GetBuffer(), 00777 );
#endif
- sGlobalDir = ByteString( _INIROOT );
+ sGlobalDir = GetGlobalIni();
}
/****************************************************************************/
@@ -191,6 +191,18 @@ ByteString IniManager::GetLocalIni()
}
/****************************************************************************/
+ByteString IniManager::GetGlobalIni()
+/****************************************************************************/
+{
+ ByteString sGlobalPath = ByteString( getenv( "GLOBALINI" ));
+
+ if ( !sGlobalPath.Len())
+ sGlobalPath = ByteString( _INIROOT );
+
+ return sGlobalPath;
+}
+
+/****************************************************************************/
void IniManager::ForceUpdate()
/****************************************************************************/
{