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");
|
scanJavaDirs("/opt/jdks");
|
||||||
// flatpak
|
// flatpak
|
||||||
scanJavaDirs("/app/jdk");
|
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 = addJavasFromEnv(javas);
|
||||||
javas.removeDuplicates();
|
javas.removeDuplicates();
|
||||||
return javas;
|
return javas;
|
||||||
|
Loading…
Reference in New Issue
Block a user