[Mono-bugs] [Bug 597907] New: Environment.GetFolderPath using SpecialFolder.MyDocuments returns unexpected result on OS X

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 19 16:36:27 EDT 2010



           Summary: Environment.GetFolderPath using
                    SpecialFolder.MyDocuments returns unexpected result on
                    OS X
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jpage at fender.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/ Safari/532.5

Under the OS X platform, Mono's System.Environment.GetFolderPath using the
System.Environment.SpecialFolder.MyDocuments enum value returns an unexpected
value.  Currently, it returns the user's home directory, rather than the OS X
Documents folder (or whatever it's called in the user's locale) under the
user's home directory.

The reason why we care about this is because the Silverlight 4 runtime, when
using that same method, returns the expected folder path.  Silverlight can only
access files under certain directories, including the Documents folder.  We're
using a Mono back end for the Silverlight front end, so we'd prefer to have a
locale-neutral way of getting to the user's documents directory without
resorting to AppleScript.

Reproducible: Always

Steps to Reproduce:
1. Under OS X, invoke
2. Inspect the return value

Actual Results:  
Receive the user's home folder path

Expected Results:  
Receive the user's documents folder path

Configure bugmail: http://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