diff options
| author | Thorsten Ball <mrnugget@gmail.com> | 2023-08-07 19:48:04 +0200 |
|---|---|---|
| committer | Thorsten Ball <mrnugget@gmail.com> | 2023-08-07 19:48:04 +0200 |
| commit | 39055ebf400c49271ec978e1504c1c9c3d759311 (patch) | |
| tree | 5effe96517171efc1e484fc5082dafaf9210bea2 /macos/Ghostty-Info.plist | |
| parent | b28c7a5557a8dd4d47d6d553e6007a015e3e6fd1 (diff) | |
macOS: explicitly name the NSMainNibFile in plist
According to [this answer][0] here and [this blogpost][1], if the
`NSMainNibFile` is not specified in the `*.plist` file, then
`NSApplicationMain` will look through the bundle to get the first nib
file it finds.
I like the explicitness of naming it and it probably also saves a
miniscule amount of CPU/IO when we can skip finding the file.
[0]: https://stackoverflow.com/questions/42886400/how-does-nsapplicationmain-find-the-main-nib-file
[1]: https://jameshfisher.com/2017/03/20/how-is-mainmenu-xib-loaded/
Diffstat (limited to 'macos/Ghostty-Info.plist')
| -rw-r--r-- | macos/Ghostty-Info.plist | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macos/Ghostty-Info.plist b/macos/Ghostty-Info.plist index 0c67376eb..253b170f1 100644 --- a/macos/Ghostty-Info.plist +++ b/macos/Ghostty-Info.plist @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> -<dict/> +<dict> + <key>NSMainNibFile</key> + <string>MainMenu</string> +</dict> </plist> |
