diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-22 17:31:36 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-22 17:31:36 +0400 |
commit | 2870299867eca63b1091c0a18da50cf43f7729c9 (patch) | |
tree | 0c348e4f187dffeb83e62303dff9a577deb4943a /AppDelegate.cs | |
parent | 6dddc88992c7dd95b2152b74e4819a15573cc8f0 (diff) |
[macdoc] Externalize base configuration folder path in AppleDocHandler.
The value returned by Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData) differs per user (root or not). We thus hardcode the parameter to the root-user value in macdoc when we check for doc freshness.
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r-- | AppDelegate.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs index 8e18ebd..5d7f04d 100644 --- a/AppDelegate.cs +++ b/AppDelegate.cs @@ -71,7 +71,8 @@ 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); - AppleDocHandler = new AppleDocHandler (); + // Keep the passed path in sync with what a root Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData) returns + AppleDocHandler = new AppleDocHandler ("/var/root/.config"); // Configure the documentation rendering. SettingsHandler.Settings.EnableEditing = false; |