paths: Use more the more crossplatform Environment.SpecialFolder enumeration to determine used paths.

This commit is contained in:
Hylke Bons 2011-06-04 15:16:21 +01:00
parent 07d3e45de4
commit 0458cf826d

View file

@ -25,13 +25,14 @@ namespace SparkleLib {
public static class SparklePaths {
public static string HomePath = new UnixUserInfo (UnixEnvironment.UserName).HomeDirectory;
public static string HomePath = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
public static string SparklePath = Path.Combine (HomePath ,"SparkleShare");
public static string SparkleTmpPath = Path.Combine (SparklePath, ".tmp");
public static string SparkleConfigPath = SparkleHelpers.CombineMore (HomePath, ".config", "sparkleshare");
public static string SparkleKeysPath = SparkleHelpers.CombineMore (HomePath, ".config", "sparkleshare");
public static string SparkleInstallPath = Path.Combine (Defines.PREFIX, "sparkleshare");
public static string SparkleConfigPath = Path.Combine (Environment.GetFolderPath (
Environment.SpecialFolder.ApplicationData), "sparkleshare");
public static string SparkleLocalIconPath = SparkleHelpers.CombineMore (SparkleConfigPath, "icons");
public static string SparkleInstallPath = Path.Combine (Defines.PREFIX, "sparkleshare");
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare", "icons");
}