1

I would like to disable hold and press for Hyper Terminal. I have already successfully done so for VS Code using the following recipe:

defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false

from https://stackoverflow.com/a/44010683/7483211

My problem is that I don't know the app identifier I need to put in instead of com.microsoft.VSCode.

How do I find this out for an app?

1
  • 1
    Thanks @jaume for making the title more precise, had I known that this is called the app identifier I may have not need to task the question. Aug 3 at 16:18
2

It's actually not called an "app identifier" (that's something slightly different) - the correct name is "bundle identifier".

You can find it by looking in the Info.plist file in the Contents folder of any macOS application. For example for Visual Studio Code, it would typically be located in:

/Applications/Visual Studio Code.app/Contents/Info.plist

You need to look for the key named CFBundleIdentifier - it will look something like this:

<key>CFBundleIdentifier</key>
<string>com.microsoft.VSCode</string>
1
  • 1
    Note that the contents of applications are normally hidden in the Finder. To drill into them, right-click (/control-click/whatever-secondary-click-is-configured-as-on-your-Mac) on the application, and choose Show Package Contents from the contextual menu. Also, the easiest way to view .plist files in the Finder is with Quick Look -- select the .plist file, and press Command-Y or choose File menu > Quick Look [appname] (or just press spacebar, but if you have the filename selected that'll try to rename it instead). Aug 3 at 20:15
1

I figured out one way by going through defaults help:

defaults read | grep hyper

This outputs:

   "co.zeit.hyper" =     {
                "bundle-id" = "co.zeit.hyper";

So in my case the answer is co.zeit.hyper.

There may be a better way, but this works if you can guess part of the app name correctly.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .