Comment

Comment by willvarfar

The idea of storing the icon in the inode is interesting.

Conventionally, when displaying a folder, a file manager identifies the _type_ of each file, and then looks up the appropriate icon.

Does Haiku instead display whatever icon is in the inode? Could a wordprocessor document masquarade as a spreadsheet, and such?

I can't think of any security implications of this, nor think of any real mischief that a developer might cause, but I also can't think of any big advantage of it either. What use-case for having the whole icon in the inode instead of just a mime-type that is then used to look up the (already parsed, and shared) icon?

parent willvarfar 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton