Get more settings to function

This commit is contained in:
Duy Tran Khanh committed 2022-09-02 15:45:18 +07:00
1 parent 77d54ad9bf
commit 83c54845b8
8 files changed
+153 -47

No files matched your search

+3
View File
@@ -129,6 +129,9 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi
regLog("[JavaLauncher] Beginning JVM launch\n");
NSString *javaHome_pre = getPreference(@"java_home");
if (![javaHome_pre hasPrefix:@"/"]) {
javaHome_pre = [NSString stringWithFormat:@"%s/jvm/%@", getenv("POJAV_DETECTEDJB") ? "/usr/lib" : getenv("BUNDLE_PATH"), javaHome_pre];
}
// We handle unset JAVA_HOME right there
if (getSelectedJavaVersion() < minVersion) {