diff --git a/SparkleShare/SparkleDialog.cs b/SparkleShare/SparkleDialog.cs index 6a14eb12..1ec00447 100644 --- a/SparkleShare/SparkleDialog.cs +++ b/SparkleShare/SparkleDialog.cs @@ -140,6 +140,8 @@ namespace SparkleShare { Process.StartInfo.RedirectStandardOutput = true; Process.StartInfo.UseShellExecute = false; + Console.WriteLine ("[Git][" + RepoName + "] Cloning repository..."); + // Clone into the system's temporary folder Process.StartInfo.FileName = "git"; Process.StartInfo.WorkingDirectory = SparklePaths.SparkleTmpPath; @@ -150,7 +152,6 @@ namespace SparkleShare { Process.Start (); string Output = Process.StandardOutput.ReadToEnd (); - Console.WriteLine ("[Git][" + RepoName + "] Cloning repository..."); // Move the folder to the SparkleShare folder when done cloning Process.Exited += delegate { diff --git a/SparkleShare/SparklePaths.cs b/SparkleShare/SparklePaths.cs index b7432bc7..d6e4119f 100644 --- a/SparkleShare/SparklePaths.cs +++ b/SparkleShare/SparklePaths.cs @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +using Mono.Unix; using System; using System.IO; @@ -23,8 +24,9 @@ namespace SparkleShare { public static string SparkleTmpPath = "/tmp/sparkleshare"; - public static string HomePath = - Environment.GetEnvironmentVariable ("HOME"); + private static UnixUserInfo UnixUserInfo = + new UnixUserInfo (UnixEnvironment.UserName); + public static string HomePath = UnixUserInfo.HomeDirectory; public static string SparklePath = Path.Combine (HomePath ,"SparkleShare"); diff --git a/SparkleShare/SparkleRepo.cs b/SparkleShare/SparkleRepo.cs index 5c9e3997..a0bf4ad4 100644 --- a/SparkleShare/SparkleRepo.cs +++ b/SparkleShare/SparkleRepo.cs @@ -191,6 +191,7 @@ namespace SparkleShare { // Stages the made changes public void Add () { BufferTimer.Stop (); + FetchTimer.Stop (); Console.WriteLine ("[Git][" + Name + "] Staging changes..."); Process.StartInfo.Arguments = "add --all"; Process.Start (); @@ -198,6 +199,7 @@ namespace SparkleShare { Console.WriteLine ("[Git][" + Name + "] Changes staged."); // SparkleUI.NotificationIcon.SetSyncingState (); // SparkleUI.NotificationIcon.SetIdleState (); + FetchTimer.Start (); } // Commits the made changes