Merge pull request #3893 from colbiedison/detect_jdks_in_opt

[Linux] Add detection of manually installed JDKs in /opt
This commit is contained in:
Petr Mrázek 2021-06-22 19:14:37 +02:00 committed by GitHub
commit bc2c6cf030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -381,6 +381,9 @@ QList<QString> JavaUtils::FindJavaPaths()
scanJavaDir("/usr/lib32/jvm");
// javas stored in MultiMC's folder
scanJavaDir("java");
// manually installed JDKs in /opt
scanJavaDir("/opt/jdk");
scanJavaDir("/opt/jdks");
return javas;
}
#else