bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #14965] NSOpenStepRootDirectory() returning wrong result


From: Sheldon Gill
Subject: Re: [bug #14965] NSOpenStepRootDirectory() returning wrong result
Date: Mon, 14 Nov 2005 08:22:36 +0800
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Nicola Pero wrote:
Follow-up Comment #2, bug #14965 (project gnustep):

Probably the reason it was deprecated is that a very long time ago, GNUstep
had a 'GNUSTEP_ROOT' directory (by default '/usr/GNUstep' on GNU/Linux) and
GNUSTEP_SYSTEM_ROOT, GNUSTEP_LOCAL_ROOT, GNUSTEP_NETWORK_ROOT etc. where
situated as subdirectory of that one (by default '/usr/GNUstep/System',
'/usr/GNUstep/Local' etc).

That long time ago I believe NSOpenStepRootDirectory () was expected to
return $GNUSTEP_ROOT, ie '/usr/GNUstep'.

It was the case. In the mists of time NSOpenStepRootDirectory() was supposed to return $GNUSTEP_ROOT$.

At the time System and Local were there. This is basically the very old Openstep layout.

I certainly agree with the new trend that it should return '/' and I'm very
happy to see that our efforts for removing GNUSTEP_ROOT (which I've finally
manage to entirely remove from gnustep-make about a month ago) are
successfull and it's now not only deprecated but entirely forgotten :-)

GNUSTEP_ROOT would provide nothing useful in terms of API or functionality
and it was a problem in terms of filesystem flexibility, so it's quite a good
change that we now longer have it! :-)

This is why I marked it as deprecated. There isn't a reason to use it anymore and the old uses don't apply.

If you're trying to locate some place in the directory structure you should be using NSSearchPathForDirectoryInDomains()


Regards,
Sheldon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]