Author: andreia
Date: 2007-10-31 06:08:29 -0500 (Wed, 31 Oct 2007)
New Revision: 88548
Modified:
trunk/mcs/class/Mono.Mozilla/ChangeLog
trunk/mcs/class/Mono.Mozilla/Mono.Mozilla/Base.cs
Log:
* Base.cs: Send (and create if needed) user dir to store local mozilla data
2007-10-31 Andreia Gaita <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Mono.Mozilla/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Mozilla/ChangeLog 2007-10-31 11:05:02 UTC (rev
88547)
+++ trunk/mcs/class/Mono.Mozilla/ChangeLog 2007-10-31 11:08:29 UTC (rev
88548)
@@ -1,6 +1,10 @@
+2007-10-31 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * Base.cs: Send (and create if needed) user dir to store local mozilla
data
+
2007-10-30 Andreia Gaita <[EMAIL PROTECTED]>
- Base.cs: use the blur method to signal when the webbrowser loses
+ * Base.cs: use the blur method to signal when the webbrowser loses
focus
2007-10-18 Andreia Gaita <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Mono.Mozilla/Mono.Mozilla/Base.cs
===================================================================
--- trunk/mcs/class/Mono.Mozilla/Mono.Mozilla/Base.cs 2007-10-31 11:05:02 UTC
(rev 88547)
+++ trunk/mcs/class/Mono.Mozilla/Mono.Mozilla/Base.cs 2007-10-31 11:08:29 UTC
(rev 88548)
@@ -79,8 +79,16 @@
IntPtr ptrCallback = Marshal.AllocHGlobal
(Marshal.SizeOf (info.callback));
Marshal.StructureToPtr (info.callback, ptrCallback,
true);
+ string monoMozDir = System.IO.Path.Combine (
+ System.IO.Path.Combine (
+ Environment.GetFolderPath
(Environment.SpecialFolder.LocalApplicationData),
+ ".mono"), "mozilla");
+
+ if (!System.IO.Directory.Exists (monoMozDir))
+ System.IO.Directory.CreateDirectory
(monoMozDir);
+
try {
- info.gluezilla = gluezilla_init (ptrCallback,
Environment.CurrentDirectory);
+ info.gluezilla = gluezilla_init (ptrCallback,
Environment.CurrentDirectory, monoMozDir);
}
catch (DllNotFoundException) {
Console.WriteLine ("libgluezilla not found. To
have webbrowser support, you need libgluezilla installed");
@@ -249,7 +257,7 @@
private static extern void gluezilla_debug_startup();
[DllImport("gluezilla")]
- private static extern IntPtr gluezilla_init (IntPtr events,
string startDir);
+ private static extern IntPtr gluezilla_init (IntPtr events,
string startDir, string dataDir);
[DllImport ("gluezilla")]
private static extern IntPtr gluezilla_shutdown (IntPtr
instance);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches