1diff --git a/Libraries/MiKTeX/Core/Session/filetypes.cpp b/Libraries/MiKTeX/Core/Session/filetypes.cpp
2index 82e55382f..84ac206e9 100644
3--- a/Libraries/MiKTeX/Core/Session/filetypes.cpp
4+++ b/Libraries/MiKTeX/Core/Session/filetypes.cpp
5@@ -198,6 +198,15 @@ void SessionImpl::RegisterFileType(FileType fileType)
6 searchPath.push_back(myPrefixBinCanon.ToString());
7 }
8 #endif
9+ if (Utils::GetEnvironmentString("PATH", str))
10+ {
11+ PathName binDir(str);
12+ binDir.Canonicalize();
13+ if (std::find(searchPath.begin(), searchPath.end(), binDir.ToString()) == searchPath.end())
14+ {
15+ searchPath.push_back(binDir.ToString());
16+ }
17+ }
18 break;
19 }
20 case FileType::OTF: