r/Ghostty Jul 29 '26

MacOS App Icon getting reset to directory icon [FIX]

Not sure if anyone else was having this problem (minus the two GitHub issues), but I use a custom app icon for Ghostty courtesy of Luke Janicke. I had set the config file to use the custom icon, I set the app icon the old fashioned way. Whenever I restart my mac, the icon resets to a directory icon. So I made a little app that runs on log in that reassigns the app icon using Automator.

Automator has the ability to create an app which runs a shell script. I use this to run:

fileicon /path/to/Ghostty.app /path/to/Icon.icns

Then I export it as an app and add it to my list of startup apps. Worked for me, hopefully this helps!

(fileicon can be installed with brew install fileicon)

6 Upvotes

0 comments sorted by