1663
.DS_Store (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] raspberriesareyummy@lemmy.world 213 points 1 week ago

honestly - while a Mac is certainly less painful to use than winshit, putting rubbish files recursively into each(!!) accessed folder, on all thumbdrives ever inserted, that's something Jobs deserves to burn in hell for.

[-] ulterno@programming.dev 50 points 1 week ago* (last edited 1 week ago)

You'd want that, but a lot of programs do that, both in Windows and Linux.

e.g. The .directory files with the [Desktop Entry] spec by freedesktop.org
Dolphin has the option to enable/disable the feature

[-] lengau@midwest.social 44 points 1 week ago

FWIW Dolphin only does it if the filesystem doesn't provide a way to add that metadata directly to the directory and you change the view configuration for that directory away from your standard configuration. Which is how the standard describes to do it. (Some file managers incorrectly add those .directory files to every directory you visit.)

A mac will add a .DS_Store file to any directory just by breathing on it.

[-] ulterno@programming.dev 9 points 1 week ago

Well, those are different specifications. Apple(who wants everything for themselves) vs FDO(whose main goal seems to be interoperability)

[-] raspberriesareyummy@lemmy.world 15 points 1 week ago

today I learned - using Linux at home since 2005ish and I have never had an auto-file generated on any USB attached drives of mine...

[-] ulterno@programming.dev 2 points 1 week ago

I have manually made .directory files (using a bash script) to set icons on folders.

It feels good when programs let you know what they intend on doing.

[-] Croquette@sh.itjust.works 19 points 1 week ago

I am not familiar with MacOS, but that seems like a nightmare. What is the purpose of these files?

[-] vvv@programming.dev 53 points 1 week ago

the macos file browser, Finder, lets you set a background for a folder, move file icons around to arbitrary positions, other shenanigans. in order for this to work across systems on removable storage media and network mounts, they have this.

[-] EddoWagt@feddit.nl 3 points 1 week ago

Why not make the file when a change is made like with windows desktop.ini files?

[-] filcuk@lemmy.zip 2 points 1 week ago

I don't think the code is available for people to figure out whether there's a reason or if it's completely arbitrary.

[-] dwemthy@lemmy.world 20 points 1 week ago

Iirc they're indexes for the system wide search feature, Spotlight

[-] lord_ryvan@ttrpg.network 2 points 1 day ago

Nope, that's the .Spotlight-{INDEX} folder which is also often created ๐Ÿ˜

this post was submitted on 28 Jan 2025
1663 points (100.0% liked)

Programmer Humor

20351 readers
1459 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS