Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-03-30 00:07:14 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-03-30 00:07:14 +0400
commit3826c2b11a543bf04e5a8a5aa0fc4118c554cd75 (patch)
tree32cd2710ca3073710b3a4a5b8b33681648305927
parentcccd4d1c9ef23a4387a7690c53883f69137a0081 (diff)
[appledocwizard] Use a more appropriate path for storing root-related operation config
-rw-r--r--AppDelegate.cs3
-rw-r--r--AppleDocWizard/AppleDocWizardController.cs5
2 files changed, 5 insertions, 3 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index 5d7f04d..2039357 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -71,8 +71,7 @@ namespace macdoc
IndexUpdateManager = new IndexUpdateManager (Root.HelpSources.Cast<HelpSource> ().Select (hs => Path.Combine (hs.BaseFilePath, hs.Name + ".zip")).Where (File.Exists),
macDocPath);
BookmarkManager = new BookmarkManager (macDocPath);
- // Keep the passed path in sync with what a root Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData) returns
- AppleDocHandler = new AppleDocHandler ("/var/root/.config");
+ AppleDocHandler = new AppleDocHandler ("/Library/Frameworks/Mono.framework/Versions/Current/etc/");
// Configure the documentation rendering.
SettingsHandler.Settings.EnableEditing = false;
diff --git a/AppleDocWizard/AppleDocWizardController.cs b/AppleDocWizard/AppleDocWizardController.cs
index 1418c3c..2d72ef1 100644
--- a/AppleDocWizard/AppleDocWizardController.cs
+++ b/AppleDocWizard/AppleDocWizardController.cs
@@ -18,6 +18,9 @@ namespace macdoc
NotAdmin
}
+ const string ConfigDir = "/Library/Frameworks/Mono.framework/Versions/Current/etc/";
+ const string LogFile = "/Library/Frameworks/Mono.framework/Versions/Current/var/appledocwizard.log";
+
CancellationTokenSource source = new CancellationTokenSource ();
AppleDocHandler handler;
@@ -34,7 +37,7 @@ namespace macdoc
public AppleDocWizardController () : base ("AppleDocWizard")
{
Window.CancellationSource = source;
- handler = new AppleDocHandler ();
+ handler = new AppleDocHandler (ConfigDir);
handler.AppleDocProgress += HandleAppleDocProgress;
}