[Mono-osx] How to write files to (and read from) special folders
Miguel de Icaza
miguel at novell.com
Wed Dec 29 15:12:13 EST 2010
I found a discussion on macworld.com
> (http://hintsforums.macworld.com/showthread.php?t=100909) that says that
> you never know the context before hand. It depends on the place your app
> was started. You should use "~/Library/Application
> Support/yourapplication". Does the MonoMac community agree?
Historically, Mono used the XDG standard for retrieving the parameters from
GetFolderPath, this might need to change, but wont be there any time soon
(best case scenario, we do this for Mono 2.10, but that is still 2 months
You should for now use this to get your home directory:
And then use Path.Combine (home, "Library", "Application Support",
To get the right path.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx