Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from ShadowWolf/fix-appdata
Browse files Browse the repository at this point in the history
Changed environment variable to no longer use ~
  • Loading branch information
Paul Betts committed Sep 16, 2014
2 parents 0e8ff3a + 514fda3 commit ac49d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static int Main(string[] args)
var dest = new FileInfo(Environment.ExpandEnvironmentVariables(@"%AppData%\GitPad\GitPad.exe"));
File.Copy(Assembly.GetExecutingAssembly().Location, dest.FullName, true);

Environment.SetEnvironmentVariable("EDITOR", "~/AppData/Roaming/GitPad/GitPad.exe", EnvironmentVariableTarget.User);
Environment.SetEnvironmentVariable("EDITOR", dest.FullName.Replace('\\', '/'), EnvironmentVariableTarget.User);
return 0;
}

Expand Down

0 comments on commit ac49d54

Please sign in to comment.