[Mono-bugs] [Bug 82603][Min] New - FileDialogs/FolderBrowserDialog: Win32 wrong Desktop folder used

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 27 06:39:07 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 andyhume32 at yahoo.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=82603

--- shadow/82603	2007-08-27 06:39:07.000000000 -0400
+++ shadow/82603.tmp.19774	2007-08-27 06:39:07.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 82603
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: andyhume32 at yahoo.co.uk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileDialogs/FolderBrowserDialog: Win32 wrong Desktop folder used
+
+On my Windows machine I've relocated my user files to drive D.  Thus I 
+have remnants of the special-folder 'Desktop' on C, and the real one on 
+D.  All the Mono dialogs display the contents of the old one. :-(
+
+Displaying all the special-folder locations from Mono and MSFT show the 
+same locations and both show two items thus:
+* (0x00000000) Desktop               : C:\Documents and 
+Settings\alan\Desktop
+* (0x00000010) DesktopDirectory      : D:\Documents and 
+Settings\alan\Desktop
+
+In the Environment.SpecialFolder enum (http://msdn2.microsoft.com/en-
+us/library/system.environment.specialfolder.aspx) the descriptions are:
+* Desktop -- The logical Desktop rather than the physical file system 
+location.  
+* DesktopDirectory -- The directory used to physically store file objects 
+on the desktop. 
+Do not confuse this directory with the desktop folder itself, which is a 
+virtual folder.
+ 
+And there's similar text at the Win32 equivalent 
+(http://msdn2.microsoft.com/en-us/library/ms649274.aspx).
+
+So it seems that MWFVFS (?Managed WinForms Virtual FS) in Theme.Places in 
+Theme.cs should use:
+   return Environment.GetFolderPath(
+                 Environment.SpecialFolder.DesktopDirectory);
+rather than E.S.Desktop


More information about the mono-bugs mailing list