[Mono-devel-list] [PATCH] GetFolderPath improvements

Sebastien Pouliot spouliot at videotron.ca
Tue Jun 15 21:04:23 EDT 2004

Many details have already been filled in

but I'm unsure this is wise to change this close to the 1.0 release.
OTHO changing it afterward won't be fun either...

Sebastien Pouliot

-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com]On Behalf Of Ben Maurer
Sent: 15 juin 2004 19:47
To: mono-devel
Subject: [Mono-devel-list] [PATCH] GetFolderPath improvements

Hey guys,

GetFolderPath was returning paths that are not really consistent with
the Linux background. The attached path will make us do the following

        ~/Desktop -- Luis says that this is the default on all GNOME and
        KDE systems. That should pretty much cover us for Linux.
        ~ -- as before
        The config directory as per fd.o's XDG spec. This defaults to
        The data folder per XDG. Defaults to ~/.local/share
        /etc. Should this be /usr/share.
        /etc. Maybe /bin is more correct?
Program Files

All other folders return "". Per the MSDN docs, if a folder has not been
created on the computer, the method should return String.Empty. Before
we would return a semi-related folder for things.

Another open issue is if we should probe for the existence of the folder
before returning it. In the windows code, it looks like we even try to
create the file before giving up. I would appreciate comments on this.

-- Ben

More information about the Mono-devel-list mailing list