paths: Use more the more crossplatform Environment.SpecialFolder enumeration to determine used paths.
This commit is contained in:
parent
07d3e45de4
commit
0458cf826d
|
@ -25,13 +25,14 @@ namespace SparkleLib {
|
||||||
|
|
||||||
public static class SparklePaths {
|
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 SparklePath = Path.Combine (HomePath ,"SparkleShare");
|
||||||
public static string SparkleTmpPath = Path.Combine (SparklePath, ".tmp");
|
public static string SparkleTmpPath = Path.Combine (SparklePath, ".tmp");
|
||||||
public static string SparkleConfigPath = SparkleHelpers.CombineMore (HomePath, ".config", "sparkleshare");
|
public static string SparkleConfigPath = Path.Combine (Environment.GetFolderPath (
|
||||||
public static string SparkleKeysPath = SparkleHelpers.CombineMore (HomePath, ".config", "sparkleshare");
|
Environment.SpecialFolder.ApplicationData), "sparkleshare");
|
||||||
public static string SparkleInstallPath = Path.Combine (Defines.PREFIX, "sparkleshare");
|
|
||||||
public static string SparkleLocalIconPath = SparkleHelpers.CombineMore (SparkleConfigPath, "icons");
|
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");
|
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare", "icons");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue