Allow home path to be specified

This commit is contained in:
Eric Wong 2012-01-07 00:19:44 -08:00 committed by Hylke Bons
parent 98746b26c7
commit b0457580b5

View file

@ -37,8 +37,11 @@ namespace SparkleLib {
public string HomePath { public string HomePath {
get { get {
return Environment.GetFolderPath (Environment.SpecialFolder.Personal); if (GetConfigOption ("home_path") != null)
} return GetConfigOption ("home_path");
else
return Environment.GetFolderPath (Environment.SpecialFolder.Personal);
}
} }
public string FoldersPath { public string FoldersPath {
@ -105,6 +108,7 @@ namespace SparkleLib {
} finally { } finally {
Load (FullPath); Load (FullPath);
TmpPath = Path.Combine(FoldersPath, ".tmp");
} }
} }