Merge pull request #1682 from romangraef/addmorejavas
Add more Java installation dirs
This commit is contained in:
commit
a7bdfb5f6b
@ -403,6 +403,14 @@ QList<QString> JavaUtils::FindJavaPaths()
|
||||
scanJavaDirs("/opt/jdks");
|
||||
// flatpak
|
||||
scanJavaDirs("/app/jdk");
|
||||
|
||||
auto home = qEnvironmentVariable("HOME");
|
||||
|
||||
// javas downloaded by IntelliJ
|
||||
scanJavaDirs(FS::PathCombine(home, ".jdks"));
|
||||
// javas downloaded by sdkman
|
||||
scanJavaDirs(FS::PathCombine(home, ".sdkman/candidates/java"));
|
||||
|
||||
javas = addJavasFromEnv(javas);
|
||||
javas.removeDuplicates();
|
||||
return javas;
|
||||
|
Loading…
Reference in New Issue
Block a user