windows: always overwrite %HOME%. See #697

This commit is contained in:
Hylke Bons 2012-06-02 18:15:29 +01:00
parent d8ba6e2701
commit 9b2089982c

View file

@ -65,12 +65,7 @@ namespace SparkleShare {
Environment.SetEnvironmentVariable ("PATH", new_PATH);
Environment.SetEnvironmentVariable ("PLINK_PROTOCOL", "ssh");
if (string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("HOME"))) {
Environment.SetEnvironmentVariable (
"HOME", Environment.GetFolderPath (Environment.SpecialFolder.UserProfile)
);
}
Environment.SetEnvironmentVariable ("HOME", Environment.GetFolderPath (Environment.SpecialFolder.UserProfile));
StartSSH ();
base.Initialize ();