[Mono-devel-list] [PATCH] GetFolderPath improvements
Ben Maurer
bmaurer at ximian.com
Tue Jun 15 19:47:15 EDT 2004
Hey guys,
GetFolderPath was returning paths that are not really consistent with
the Linux background. The attached path will make us do the following
mappings:
Desktop
DesktopDirectory
~/Desktop -- Luis says that this is the default on all GNOME and
KDE systems. That should pretty much cover us for Linux.
Personal
~ -- as before
ApplicationData
The config directory as per fd.o's XDG spec. This defaults to
~/.config
LocalApplicationData
The data folder per XDG. Defaults to ~/.local/share
CommonApplicationData
/etc. Should this be /usr/share.
System
/etc. Maybe /bin is more correct?
Program Files
/usr/bin
CommonApplicationData
/usr/share
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corlib-getfolderpath.patch
Type: text/x-patch
Size: 3633 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040615/0449a76a/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metadata-getfolderpath.patch
Type: text/x-patch
Size: 5087 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040615/0449a76a/attachment-0001.bin
More information about the Mono-devel-list
mailing list