[Mono-dev] Environment.GetFolderPath() behaviour inconsistent with .NET

expeBITion expebition at gmail.com
Tue Mar 8 09:55:34 EST 2011


Bug 599476 has gone almost a year without any action.

There four related problems:

   * Microsoft Silverlight on OS X implements MyDocuments as 
$HOME/Documents but Mono implements the same as $HOME (detailed by Jacob 
Page in Bug 597907)
   * Mono does not provide a way to retrieve $HOME/Documents
   * the Microsoft documentation states that MyDocuments is the "My 
Documents folder", which aligns much better with $HOME/Documents than 
with $HOME
   * Mono returns different results for Personal on OS X vs. MonoTouch, 
which seems counter-intuitive (see Bug 537947)

The solution to all four of these issues is to point MyDocuments to 
$HOME/Documents and Personal to $HOME.  This change would not break 
existing code which relies on Personal and is consistent with 
"System.Environment.SpecialFolder Enumeration" which, for MyDocuments, 
states, "Documentation for this section has not yet been entered".

References:

   * Bug 599476 - https://bugzilla.novell.com/show_bug.cgi?id=599476
   * Bug 537947 - https://bugzilla.novell.com/show_bug.cgi?id=537947
   * Bug 597907 - https://bugzilla.novell.com/show_bug.cgi?id=597907
   * "System.Environment.SpecialFolder Enumeration" - 
http://www.go-mono.com/docs/index.aspx?link=T%3aSystem.Environment.SpecialFolder
   * Microsoft documentation - 
http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx 



More information about the Mono-devel-list mailing list