Skip to content

Commit

Permalink
LocalAppData for winmerge
Browse files Browse the repository at this point in the history
fixes #264
  • Loading branch information
SimonCropp committed Nov 27, 2021
1 parent c88f966 commit 3e59da9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/diff-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
* `%ProgramFiles%\WinMerge\WinMergeU.exe`
* `%ProgramW6432%\WinMerge\WinMergeU.exe`
* `%ProgramFiles(x86)%\WinMerge\WinMergeU.exe`
* `%LocalAppData%\Programs\WinMerge\WinMergeU.exe`


## MDI tools
Expand Down
1 change: 1 addition & 0 deletions src/DiffEngine.Tests/diffTools.include.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
* `%ProgramFiles%\WinMerge\WinMergeU.exe`
* `%ProgramW6432%\WinMerge\WinMergeU.exe`
* `%ProgramFiles(x86)%\WinMerge\WinMergeU.exe`
* `%LocalAppData%\Programs\WinMerge\WinMergeU.exe`


## MDI tools
Expand Down
3 changes: 2 additions & 1 deletion src/DiffEngine/Implementation/WinMerge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ static string TargetRightArguments(string temp, string target)
windows: new(
TargetLeftArguments,
TargetRightArguments,
@"%ProgramFiles%\WinMerge\WinMergeU.exe"),
@"%ProgramFiles%\WinMerge\WinMergeU.exe",
@"%LocalAppData%\Programs\WinMerge\WinMergeU.exe"),
notes: @"
* [Command line reference](https://manual.winmerge.org/en/Command_line.html).
* `/u` Prevents WinMerge from adding paths to the Most Recently Used (MRU) list.
Expand Down

0 comments on commit 3e59da9

Please sign in to comment.