[Mono-bugs] [Bug 599476] Environment.GetFolderPath() behaviour inconsistent with .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 4 15:50:29 EST 2011



--- Comment #2 from expe bition <expebition at gmail.com> 2011-03-04 20:50:28 UTC ---
After posting the above comment, I found specs
"System.Environment.SpecialFolder Enumeration":


which define SpecialFolder.Personal as "The personal or home directory for the
current user. On non-Windows operating systems, this is the user's home
directory."  They also mention Personal in the comments of other members.

In this light, it seems that my comment earlier today should be rethought.

The issues are:

  * 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 (linked in above description) 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 of these issues is to point MyDocuments to $HOME/Documents
but leave Personal as $HOME.  This change would not break existing code which
relies on Personal and is consistent with the Mono specs (linked above) which,
for MyDocuments, state, "Documentation for this section has not yet been

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list