Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Commit f30cc19

Browse files
committed
feat(Java): 增加 UserProfile 目录搜索项
1 parent 79ed887 commit f30cc19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Helper/JavaManage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ private static void _ScanDefaultInstallPaths(ref ConcurrentBag<string> javaPaths
198198
var programFilesPaths = new List<string>
199199
{
200200
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
201-
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
201+
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
202+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
202203
};
203204
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
204205
{

0 commit comments

Comments
 (0)