[Mono-list] Environment.GetFolderPath() on fedora core 8

Chris Howie cdhowie at gmail.com
Sat Jan 5 09:34:25 EST 2008


(Sorry if you get this twice Travis, I didn't reply to the list last time.)

On Jan 5, 2008 9:09 AM, Travis Staloch <twostepted at yahoo.com> wrote:

> When using Environment.GetFolderPath(Environment.SpecialFolder.Desktop), I
> get a funny looking result on FC 8.  I get the following string (with quotes
> included in the string).
>
> /home/username/"$HOME/Desktop"
>
> This seems like a bug.  Should I file a bug report?
>

Yes, that's not at all what you should be getting.

Also, Environment.SpecialFolder.Programs,
> Environment.SpecialFolder.StartMenu, Environment.SpecialFolder.Startupreturn empty strings when passed to
> Environment.GetFolderPath().  I might expect
> Environment.SpecialFolder.Programs to return something like /usr/bin. Can
> anyone comment on whether this is the expected behavior on FC 8?
> <http://lists.ximian.com/mailman/listinfo/mono-list>


Yes.  Those special folders are not supported on Linux, and according to the
MSDN documentation this method returns:

> The path to the specified system special folder, if that folder physically
exists on your computer; otherwise, the empty string ("").

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080105/de20d1b3/attachment-0001.html 


More information about the Mono-list mailing list