212 points

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.

permalink
report
reply
48 points
*

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

permalink
report
parent
reply
47 points

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.

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply
16 points

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…

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
20 points

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

permalink
report
parent
reply
56 points

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.

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
17 points

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

permalink
report
parent
reply
23 points

Is there a valid reason not to store that [[anywhere else]], ideally in Spotlight’s data?

permalink
report
parent
reply
3 points

Nope, that’s the .Spotlight-{INDEX} folder which is also often created 😁

permalink
report
parent
reply
136 points

See also: Let’s roll our own .zip implementation that only Mac can reliably read for…reasons

permalink
report
reply
77 points

every time i get a zip file from a mac user it has a folder with random junk in it. what’s up with that? i can open the files without it so clearly those files are unnecessary

permalink
report
parent
reply
77 points

Metadata that’s a holdover from the 1980s MacOS behavior. Hilariously, today, NTFS supports that metadata better than Apple’s own filesystems of today. They can hide it in Alternate Data Streams.

permalink
report
parent
reply
4 points

Why didn’t they add resource/data forks in APFS?

permalink
report
parent
reply
108 points
*

Hmm… Smells like a windows user aswell… Look at that:

.desktop desktop.ini

Edit: fixed the filename

permalink
report
reply
133 points

Thumbs.db

permalink
report
parent
reply
15 points

ehthumbs_vista.db

permalink
report
parent
reply
9 points
1 point

Thanks but sadly my Windows peers won’t do this because it’s a manual step and they’re already afraid of Windows knifing their computer with an update without making manual changes on top of that.

permalink
report
parent
reply
87 points

System Volume Information

permalink
report
parent
reply
53 points

… You mean desktop.ini?

permalink
report
parent
reply
20 points

Ah shit I’ve forgotten the ancient tablets, ill fix that thank you!

permalink
report
parent
reply
30 points
*

I’ve caught the whiff of some Linux too…

lost+found

permalink
report
parent
reply
100 points
Thumbs.db
permalink
report
reply
82 points

you should do this with every one of these cases. btw, where does .Trash-1000 actually come from?

permalink
report
reply
87 points

Freedesktop.org’s trash specification. It’s where files moved to trash go before being deleted when it’s emptied. The 1000 is the user id.

permalink
report
parent
reply
43 points

.Trash-999 was already taken by a metal band.

permalink
report
parent
reply
22 points

I had a long and frustrating conflict with this, on this post.

As @d_k_bo@feddit.org (An dem Punkt könnten wir auch einfach Deutsch labern) noted, it’s a freedesktop.org specification.

I still stand the point that it’s not very thought through (a hidden dir? Why?), and that blindly implementing it is annoying. It shouldn’t be a universal standard for all systems, as it’s only relevant if you use a file manager which can then use that dir as Trash dir - which I don’t. That could be tested by only allowing filemanagers to create the dir, and if it doesn’t exist, discard the data. That’s probably how some programs work, as only Prismlauncher has created the dir.

Workaround: ln -s .Trash-1000 /dev/null

permalink
report
parent
reply
12 points

I agree. It somehow seems very unfinished, and it annoyed me more than I’d like

permalink
report
parent
reply
4 points

Hab tagelang hass geschoben weil der Schmutz mir massiv Speicherplatz geklaut hat. Muss halt zu dev/null symlinken und prüfe regelmäßig global ob es ein neues davon gibt.

permalink
report
parent
reply
1 point

The land of the penguins

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 8.5K

    Monthly active users

  • 1.2K

    Posts

  • 44K

    Comments