Live data from Hacker News

Hardcoded Folder Icons in macOS

weblog.antranigv.am

11–20 of 130 posts

Re: Hardcoded Folder Icons in macOS

#11
post #5

> If you’re new to macOS, this is a kindly reminder that macOS ships with Apache2. Oh, I didn't realize that. Seems like a strange choice?

Mac OS X used to ship with a wide variety of open source software such as Samba or CUPS. Most of that stuff is removed nowadays but some is still present. Many networking services can be easily activated using the settings app.

>> used to ship with a wide variety of open source software such as Samba or CUPS

The CUPS software is still available in Ventura and it comes with version 2.3.4. This version is more up-to-date compared to the latest release of CUPS from Apple on Github and it doesn't match any releases in OpenPrinting CUPS.

Re: Hardcoded Folder Icons in macOS

#13
post #9
post #7

Earlier quoted context omitted.

It also used to come with twisted preinstalled back when it still shipped with python2.

And there was a period where it came with rails.

I believe Podcast Producer (which used to run on Mac OS X Server) used to run on rails, or perhaps just ruby. It was a long time ago.

Re: Hardcoded Folder Icons in macOS

#15
post #2

If you want to use any of these, 1) Navigate in the Finder to /System/Library/CoreServices/ 2) Open "CoreTypes.bundle" by right-clicking it and selecting "Sow Package Contents" from the centext menu, then open the "Contents" folder, then "Resources" 3) There they are! Find a suitable icon (preview either with "Get Info" or by double-clicking, which will open them in Preview) 4) In a second window, navigate to the fol…

You can also press Shift + Command + G and paste /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ to go there directly. Unfortunately, even if you set a custom icon for a folder, it'll still show as default icon in the sidebar. I wanted to give my ~/dev sidebar entry the developer icon, but sadly it seems to be hardcoded ~/Developer indeed.

>> Unfortunately, even if you set a custom icon for a folder...

Yeah this is what I hoped the article was going to demonstrate, unfortuntely it was just a case of "did you know you had all these system icons already on your system?", to which the answer was "well yeah..."

Re: Hardcoded Folder Icons in macOS

#16
post #8

Earlier quoted context omitted.

It's been in macOS for quite some time. Mostly dormant now but at one point it was what powered the Web Sharing option in the Sharing prefpane. It was also used in OS X Server (both the OS X versions designed for Xserve and the later "app" version) before that was largely whittled away. I can't exactly find if it came with OS X since the beginning (which would predate nginx and friends), but it probably was a much mo…

"quite some time", is an understatement. The Apache HTTP Server was included as part of Mac OS X starting with version 10.0 (Cheetah), which was released on March 24, 2001. Prior to that, users of Mac OS X would have to manually install and configure Apache HTTP Server, if they desired to run a web server on their Mac.

Was there a meaningful "before" for Mac OS X? 10.0 was the first X (unless you mean developer previews and the like).

Re: Hardcoded Folder Icons in macOS

#18
post #12

Personally going to start using the ~/Developer directory for all my projects now

I’ve been doing this for years, it’s a nice touch!

Don’t forget to update the folder permissions to be like the others in your home directory. By default all users of your machine will have read access to the ~/Developer folder you create.

And while you’re at it, might as well pin that folder to the left side of Finder.

Re: Hardcoded Folder Icons in macOS

#19
That burnable folder icon is pretty fun. If you drag it to the Finder sidebar, it has a special icon too. I opened terminal, and did "mkdir Test.fpbf", then in Finder, navigated to the home directory and dragged that folder to the left sidebar. It shows up with a "nuke" icon to the left, and a grey nuke icon to the right.

I may leave it there, to have something fun to talk about when sharing a screen over Teams with colleagues.

Re: Hardcoded Folder Icons in macOS

#20

Developer is a weird string choice though, why not Development or Code. It would be like MS naming its product VS Coder (lol)

It appears to be a relic from the NeXT days.

If you look at the video [1] you can see it installing developer tools into the NeXTDeveloper and NeXTLibrary folders. So it's quite possible Apple just did a find/replace and removed the prefix.

[1] https://www.youtube.com/watch?v=dMh0WsLZZVY

Post reply on HN