Re: Bug: iTerm.app and iTerm2.app terminfo files trigger false macOS app icons
Thomas Dickey <[email protected]> Tue, 28 Apr 2026 15:00:33 -0400
| Newsgroups | gmane.comp.lib.ncurses.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 28, 2026 at 06:38:42PM +0800, 王浩宇 wrote: > Hello, > > I am reporting a UX issue on macOS caused by two specific terminfo files in > the ncurses package. > > The Problem: > When ncurses is installed on macOS, the compiled terminfo database creates > two actual files named exactly iTerm.app and iTerm2.app (located in > share/terminfo/69/). > > Because macOS uses .app as the exclusive extension for native applications, > the system’s Spotlight indexer automatically detects these files and > displays them as executable apps in the macOS Launchpad. Clicking these > “ghost” icons does nothing, as they are just plain-text terminal database > files, not real applications. > > The Fix: > Since .app is a reserved extension on macOS, could the terminal type names > be changed (for example, to iterm_app and iterm2_app) to prevent this > naming conflict? That's something that a packager (Macports or brew) would do, e.g., simply not install files that they found to be a nuisance. Both of those have aliases, iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X, iTerm2.app|iterm2|terminal emulator for Mac OS X, so just a sed -e 's/^[^.]*\.app|//' in the install script would eliminate that issue. Renaming things impacts any existing users, and since "iTerm.app" dates back to 2009 (and exists in Apple's copy...), and as you say, doesn't actually _do_ anything, it seems a little late. -- Thomas E. Dickey <[email protected]> https://invisible-island.net
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmnxA80ACgkQzCr0RyFn vgNaVAwAgvBULTpLh5fRq9EW7gpQiY3eFIK/dBIsYmiw6cXhASnWzdQBiySz1svo nRRbfAGgqQ4t2tlBITHs/z2AJvFjlZ8NgD6MVSdVVzNppaZYodPt2j9ab/AuC0gz 1IQl6AArG6ISHzzNBgerf7BUZaKUShBuN+OtVriQn9K4HDT7OeVTlO1IgBK/hG6G mcMg5WzLrUrhAd214XJFww8qD6RQOrVkUhbt7KGgbM573WCWKxIj6tW/zJlUyC/Y R8PVY9x8CnpGhNiO/51MsxmxX3SqZStojVCBrPwTPMkra3zbjH7QQ8S7GEm4bywR kczUmQBAZam7nRmSuyqlNvaDp2K7uFq3Xp+vPDYqJyfE6+sqKDIvbLZOE6TLmZHf JJYeZ15UpctBCWSYxV++IQ1ClvEK1SB5UvAOsetBEpBwgjzWe3QjAeVBKk20xgR6 hGbPmrLjZQgNpFMPlOhwhNrjT9H+PCxMf7Up/v+LTnCoDOp/Bn+Pm5aFbSt68q/j kG2JOY2c =D/j4 -----END PGP SIGNATURE-----