dotgnu-pnet
[Top][All Lists]
Advanced

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

Re: RE : [Pnet-developers] System.NotImplementedException when implement


From: Rhys Weatherley
Subject: Re: RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder
Date: Thu, 24 Jul 2003 09:22:08 +1000
User-agent: KMail/1.4.3

On Thursday 24 July 2003 02:41 am, Pascal Hauser wrote:
> Hi there..
> I've made a short look at the patch.. I saw that there is no implementation
> for other platforms than win..
> But it would be nice to have a implementation for other platforms too so
> that programs that use this can run on other platforms too..

There are no equivalents to the listed directories on other platforms.  Or 
even if alternatives appear to exist (e.g. the Desktop directory), their 
contents are completely different from the Win32 versions.  e.g. placing a 
Win32 icon definition in the KDE Desktop directory is unlikely to do what you 
want.

The "GetFolderPath" method is highly Win32 specific, like a lot of other 
things in the "Environment" class.  Portable code should never use it.  If it 
is unavoidable, portable code should check the return value for empty, and 
then back off to querying the HOME environment variable or something.  (Mono 
returns the HOME value for all folder requests, regardless of whether it is 
Win32 or non-Win32).

> I think a good point could be in a file like the "machine.config" on
> ms.net.. but currently there is no such file.. (or am I wrong?..)

I have a "zero configuration file" policy for pnet.  99% of users will use it 
as-is out of the box, so the out of the box setup must be the best possible.  
Configuration should only be used when the defaults are wrong for a 
non-standard installation, never to set the defaults.

Cheers,

Rhys.



reply via email to

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