Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On MacOS Can I add a default setting as part of my Info.plist file for my Java application

Due to a bug in MacOS Big Sur I need to run the following command

defaults write com.jthink.songkong "AppleWindowTabbingMode" manual

for my Java application with bundled version of java

Is there a way I can add this to my Info.plist file so it is already set automatically on the new install, I can alternatively use Runtime class to run the command from within Java but it would be neater if I could just configure it as part of the Info.plist file, but I don't understand macOS enough to know if that makes sense. I managed to get it added during build time so my Info.plist file contains

<key>AppleWindowTabbingMode</key>
<string>manual</string> 

But, it has had no effect.

I'm not clear if I have done something wrong or if it is just impossible.

like image 883
Paul Taylor Avatar asked Feb 25 '21 11:02

Paul Taylor


People also ask

How to change Info plist on mac?

plist file. If you need to edit these items, Control-click (or right-click) Info. plist in the sidebar and select Edit Manually. This allows you to add or edit items in raw XML format.

How to open Info plist on mac?

Info. plist - The primary property list for Mac OS X applications, located in the /​Contents/​ directory of an . APP bundle. To view this file, right-click an application file, select "Show Package Contents," and open the Contents folder.

What is an info plist file?

Information Property-List Files (Info.plist) The Info. plist file contains critical information about the configuration of an iOS mobile app—such as iOS versions that are supported and device compatibility—which the operating system uses to interact with the app.

How do I add a property list file (plist) for macOS devices?

Using Microsoft Intune, you can add a property list file (.plist) for macOS devices, or apps on macOS devices. Property list files include information about macOS applications.

How to change default apps on macOS?

Here’s how you can change default apps on macOS. We’re going to detail the process for general files, and for browsers and mail clients separately. For general files like text files, images, or media files, you need to have at least one type of the file present on your system. Right-click it and select Get Info from the context menu.

How do I create and edit a plist file?

The first step is to create your plist. You can create the plist file with any text editor. Another option is to use Terminal to create the configuration profile. However, it's easier to create and edit a plist file with a tool that formats the XML code for you.

How do I change the default file type on a Mac?

Pick an app - for images, you could select Adobe PhotoShop (providing have that on your Mac); That will change the default setting to how files with that file type are opened from now on; You can always change these settings when you want to revert back to a new option Are there other default settings that can be changed in macOS or Mac OS X?


Video Answer


1 Answers

As of a few minutes ago appbundler will set the default value for the AppleWindowTabbingMode property to "manual" upon launch. If you use it as your launcher it should fix this behaviour. Or you can check the native code in the commit and use it in your own launcher if you prefer.

like image 138
Sean Reilly Avatar answered Oct 08 '22 18:10

Sean Reilly