paths: Use more the more crossplatform Environment.SpecialFolder enumeration to determine used paths.
This commit is contained in:
parent
971b18cd3c
commit
e63b1c64e2
|
@ -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");
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue