fixing HomePath on linux

This commit is contained in:
Travis Glenn Hansen 2012-03-17 17:15:35 -06:00
parent 4e4814e17a
commit 582a6b5c1f

View file

@ -43,7 +43,7 @@ namespace SparkleLib {
if (GetConfigOption ("home_path") != null) {
return GetConfigOption ("home_path");
} else {
} else if (SparkleHelpers.IsWindows) {
try {
Environment.SpecialFolder folder =
(Environment.SpecialFolder) Enum.Parse (
@ -54,7 +54,9 @@ namespace SparkleLib {
} catch {
return Environment.GetFolderPath (Environment.SpecialFolder.Personal);
}
}
} else
return Environment.GetFolderPath (Environment.SpecialFolder.Personal);
}
}