fixing HomePath on linux
This commit is contained in:
parent
4e4814e17a
commit
582a6b5c1f
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue