Move tmp dir from /tmp/sparkleshare to ~/SparkleShare/.tmp

Works around an issue where Directory.Move doesn't work
across different partitions.
This commit is contained in:
Sandy Armstrong 2010-06-11 10:58:40 -07:00
parent f4e152fe30
commit 581c4509fc
2 changed files with 5 additions and 5 deletions

View file

@ -21,17 +21,14 @@ using System.IO;
namespace SparkleShare {
public static class SparklePaths {
public static string SparkleTmpPath =
SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
"tmp", "sparkleshare");
private static UnixUserInfo UnixUserInfo =
new UnixUserInfo (UnixEnvironment.UserName);
public static string HomePath = UnixUserInfo.HomeDirectory;
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");

View file

@ -80,6 +80,9 @@ namespace SparkleShare {
}
if (!Directory.Exists (SparklePaths.SparkleTmpPath))
Directory.CreateDirectory (SparklePaths.SparkleTmpPath);
if (!HideUI) {
// Create the status icon
NotificationIcon = new SparkleStatusIcon ();