[Mono-bugs] [Bug 81732][Wis] Changed - Environment.GetFolderPath should use XDG user-dirs
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu May 24 16:47:02 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by abockover at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81732
--- shadow/81732 2007-05-24 16:43:37.000000000 -0400
+++ shadow/81732.tmp.9093 2007-05-24 16:47:02.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 81732
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: abockover at novell.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -38,6 +38,19 @@
------- Additional Comments From abockover at novell.com 2007-05-24 16:43 -------
Created an attachment (id=19312)
Patch against monodoc to explain the enum values
+
+------- Additional Comments From abockover at novell.com 2007-05-24 16:47 -------
+For Desktop, MyMusic, and MyPictures, this patch will
+
+a) Look for the respective XDG environment variable (e.g. XDG_MUSIC_DIR)
+b) If not set in the environment, read the variable from
+"user-dirs.dirs" in SpecialFolder.ApplicationData (e.g. ~/.config)
+c) If that file doesn't exist or the variable is not set in it, fall
+back to a sane default (e.g. "~/Music")
+
+I have also implemented a non-corlib version of ReadXdgUserDir in Banshee:
+
+http://svn.gnome.org/viewcvs/banshee/trunk/banshee/src/Core/Banshee.Base/Paths.cs?r1=2279&r2=2283
More information about the mono-bugs
mailing list