Merge pull request #1631 from HeyaGlitz/sdkmandetect

Make Java auto-detect find sdkman Java installations
This commit is contained in:
Lenny McLennington 2024-01-06 13:51:12 +00:00 committed by GitHub
commit ba2fba10c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,6 +448,7 @@ QList<QString> JavaUtils::FindJavaPaths()
scanJavaDir("/opt/jdks"); scanJavaDir("/opt/jdks");
// flatpak // flatpak
scanJavaDir("/app/jdk"); scanJavaDir("/app/jdk");
scanJavaDir(FS::PathCombine(QDir::homePath(), ".sdkman/candidates/java"));
return addJavasFromEnv(javas); return addJavasFromEnv(javas);
} }
#else #else