[Top][All Lists]
[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.
- [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/22
- Re: [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Gopal V, 2003/07/22
- RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/22
- Re: RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Gopal V, 2003/07/23
- RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/23
- Re: RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Gopal V, 2003/07/23
- Re: RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Rhys Weatherley, 2003/07/23
- RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/24
- Re: RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Rhys Weatherley, 2003/07/24
- RE : RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/24
- Re: RE : RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Rhys Weatherley, 2003/07/24
- RE : RE : RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Yannis BRES, 2003/07/24
- [Pnet-developers] Re: RE : RE : RE : RE : RE : RE : [Pnet-developers] System.NotImplementedException when implementing Environment.GetSpecialFolder, Rhys Weatherley, 2003/07/24