Fix Java auto-detect so it finds sdkman

Signed-off-by: HeyaGlitz <30732772+HeyaGlitz@users.noreply.github.com>
This commit is contained in:
HeyaGlitz 2024-01-02 11:41:26 +01:00 committed by HeyaGlitz
parent bce5a8df35
commit 5e22009554

View File

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