Skip to content

Commit

Permalink
Blacklist 7z.exe from executable search
Browse files Browse the repository at this point in the history
Should fix #463
  • Loading branch information
Klocman committed May 15, 2023
1 parent 57174e7 commit c930c72
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ internal static ScanDirectoryResult ScanDirectory(DirectoryInfo directory)
if (results.Count == 0 && binSubdirs.Count == 0)
otherSubdirs.AddRange(maybeSubdirs);

// 7-Zip console application. Sometimes causes bad display data if it's picked as the most likely executable. No effect on real 7-Zip entries.
results.RemoveAll(x => string.Equals(x.Name, "7z.exe", StringComparison.OrdinalIgnoreCase));

return new ScanDirectoryResult(results, binSubdirs, otherSubdirs);
}

Expand Down

0 comments on commit c930c72

Please sign in to comment.