diff options
author | Nils Fuhrmann <nf@openoffice.org> | 2001-10-24 09:24:42 +0000 |
---|---|---|
committer | Nils Fuhrmann <nf@openoffice.org> | 2001-10-24 09:24:42 +0000 |
commit | fa1cb754b74b115a797863acb57a2928f5410b47 (patch) | |
tree | a41a19b753fc2a11098777c119118d61e1f52c69 /tools/bootstrp | |
parent | 51aa977c81fad5ffaa34d5a63fc8db073529e487 (diff) |
Added functionality GetGlobalIni()
Diffstat (limited to 'tools/bootstrp')
-rw-r--r-- | tools/bootstrp/inimgr.cxx | 18 |
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() /****************************************************************************/ { |