[Mono-bugs] [Bug 77114][Maj] New - MWF FileOpen Dialog: Exception in case of incorrect(?) KDE Icon Theme settings

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 28 20:22:17 EST 2005


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 tug at gmx.at.

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

--- shadow/77114	2005-12-28 20:22:17.000000000 -0500
+++ shadow/77114.tmp.10085	2005-12-28 20:22:17.000000000 -0500
@@ -0,0 +1,92 @@
+Bug#: 77114
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.1
+OS Details: SuSE Professional 9.1, x86 / KDE 3.2.1 / Mono 1.1.11
+Status: NEW   
+Resolution: 
+Severity: 040 One week
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: tug at gmx.at               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MWF FileOpen Dialog: Exception in case of incorrect(?) KDE Icon Theme settings
+
+The MWF OpenFileDialog (and possibly others) causes an exception to be
+thrown if the KDE ICON THEME environment is not set as expected:
+
+
+Steps to reproduce the problem:
+
+1. Run the OS/WM/Monoversion as described in the OS Details
+2. Verify that the lines described _below_ are NOT in the file "kdeglobals"
+3. Run a SWF program that uses OpenFileDialog and try to open the dlg
+
+
+Actual Results:
+----------------------
+
+The console shows the following (please observe the incorrect path):
+
+...
+System.IO.DirectoryNotFoundException: Directory
+'/opt/kde3/share/icons//48x48' not found.
+in <0x003ae> System.IO.Directory:GetFileSystemEntries (System.String path,
+System.String pattern, FileAttributes mask, FileAttributes attrs)
+in <0x00011> System.IO.Directory:GetDirectories (System.String path,
+System.String pattern)
+in <0x0000f> System.IO.Directory:GetDirectories (System.String path)
+in <0x000a7> System.Windows.Forms.KdeHandler:ReadIcons ()
+in <0x00076> System.Windows.Forms.KdeHandler:Start ()
+in <0x00322> System.Windows.Forms.MimeIconEngine:.cctor ()
+
+
+Expected Results:
+---------------------------------
+
+The dialog should appear :-)
+
+
+How often does this happen? 
+---------------------------------
+
+This bug is stable, it occurs reliably.
+
+
+Additional Information:
+--------------------------------
+
+I think the problem is in the file "/System.Windows.Forms/MimeIcon.cs".
+
+In
+
+"private void ReadIcons( )"
+
+in line 
+
+"string icon_path = icon_path_in + icon_theme + "/48x48";"
+
+the complete path is assembled. If "icon_theme" remains empty the crash
+occurs. The function attempts to find an entry in the
+
+"~/.kde/share/config/kdeglobals" file that should look like this:
+
+[Icons]
+Theme=<theme>
+
+.. where <theme> is something like "default.kde"
+
+If these lines are not present the variable "icon_theme" remains empty
+resulting in the malfunction described above.
+
+The bug has been there since 1.1.9.x , 1.1.8.2 works OK.
+
+If the lines mentioned above are there, it works.
+
+So, the question is whether it is a KDE or SWF bug :-) I think a fallback
+implementation in SWF (default value, if somehow feasible) would help to
+avoid such trouble.


More information about the mono-bugs mailing list