mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Tidied to refrain from acessing GNUSTEP_USER_ROOT directly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12537 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8d1c5e8231
commit
bd3c9c2035
2 changed files with 6 additions and 6 deletions
|
@ -2,9 +2,10 @@
|
|||
|
||||
* Source/GSTextStoarge.m: Add GSIMap option for minor performance
|
||||
improvement.
|
||||
* Tools/Make_services.m: Use correct user root. Noticed that this
|
||||
* Tools/make_services.m: Use correct user root. Noticed that this
|
||||
tool needs fixing to use the correct paths as provided by the
|
||||
NSSearchPathsForDirectoriesInDomains() function.
|
||||
* Source/NSSpellServer.m: Use NSSearchPathsForDirectoriesInDomains()
|
||||
|
||||
2002-02-13 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
|
||||
|
|
|
@ -147,12 +147,11 @@ GSSpellServerName(NSString *vendor, NSString *language)
|
|||
{
|
||||
NSString *path = nil;
|
||||
NSString *user_gsroot = nil;
|
||||
NSDictionary *env = nil;
|
||||
|
||||
env = [[NSProcessInfo processInfo] environment];
|
||||
|
||||
user_gsroot = [env objectForKey: @"GNUSTEP_USER_ROOT"];
|
||||
if(currentLanguage != nil)
|
||||
user_gsroot = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
|
||||
NSUserDomainMask, YES) lastObject];
|
||||
|
||||
if (currentLanguage != nil)
|
||||
{
|
||||
NSString *dirPath = nil;
|
||||
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||
|
|
Loading…
Reference in a new issue