diff --git a/Program.cs b/Program.cs index 843da6f..920eb95 100644 --- a/Program.cs +++ b/Program.cs @@ -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; }