在 MacOS 上,我可以在 Java 应用程序的 Info.plist 文件中添加默认设置吗

Pau*_*lor 6 java macos info.plist macos-big-sur

由于MacOS Big Sur 中错误,我需要运行以下命令

defaults write com.jthink.songkong "AppleWindowTabbingMode" manual
Run Code Online (Sandbox Code Playgroud)

用于我的 Java 应用程序与 Java 的捆绑版本

有没有一种方法可以将它添加到我的Info.plist文件中,以便它已经在新安装中自动设置,我也可以使用Runtime类从 Java 中运行命令,但如果我可以将它配置为Info.plist 文件的一部分,但我不太了解 macOS,无法知道这是否有意义。我设法在构建期间添加了它,因此我的 Info.plist 文件包含

<key>AppleWindowTabbingMode</key>
<string>manual</string> 
Run Code Online (Sandbox Code Playgroud)

但是,它没有任何效果。

我不清楚是我做错了什么还是根本不可能。