Rename the Java key to Javax in Jitsi.app's Info.plist

As soon as a dictionary with the name Java is present in Info.plist, OS
X tries to open/install Apple's old Java 6 JVM, regardless of what the
actual native launcher wants to do.
cefexperiments 5358
Ingo Bauersachs 12 years ago
parent 70c6d3d675
commit 63effac233

@ -1291,6 +1291,13 @@
</array>
<key>CFBundleName</key>]]></replacevalue>
</replace>
<!-- Rename Java dict to Javax to prevent OSX asking for the old Apple JVM -->
<replace file="${macosx.app.dir}/${application.name}.app/Contents/Info.plist">
<replacetoken><![CDATA[<key>Java</key>]]></replacetoken>
<replacevalue><![CDATA[<key>Javax</key>]]></replacevalue>
</replace>
<!-- Add property for high resolution displays -->
<replace file="${macosx.app.dir}/${application.name}.app/Contents/Info.plist">
<replacetoken><![CDATA[<key>CFBundleName</key>]]></replacetoken>

@ -9,7 +9,8 @@
#import <Cocoa/Cocoa.h>
#include <dlfcn.h>
#define JVM_JAVA_KEY "Java"
#define JVM_JAVA_KEY "Javax" // Cannot be Java
// or OSX requests the old Apple JVM
#define JVM_WORKING_DIR_KEY "WorkingDirectory"
#define JVM_MAIN_CLASS_NAME_KEY "MainClass"
#define JVM_CLASSPATH_KEY "ClassPath"

Loading…
Cancel
Save