Thumbs.db
Hmm… Smells like a windows user aswell… Look at that:
.desktop
System Volume Information
Windows is at least relatively un intrusive with that stuff, MacOS often makes hidden metadata files with the same extension as the files they store info about
Thumbs.db
ehthumbs_vista.db
… You mean desktop.ini?
Ah shit I’ve forgotten the ancient tablets, ill fix that thank you!
I’ve caught the whiff of some Linux too…
lost+found
you should do this with every one of these cases. btw, where does .Trash-1000 actually come from?
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
I agree. It somehow seems very unfinished, and it annoyed me more than I’d like
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.
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.
.Trash-999 was already taken by a metal band.
__MACOSX folders hither and yon.
Linux user has been here.
How can you tell?
*sniff* Still smells like smug.
*sniff* Still smells like smug.
.Trash-1000
LF line endings.
It’s only really Windows that doesn’t use LF these days. All the Unix-based ones (Linux, BSD, macOS, iOS, Android etc.) use LF…
Windows also uses linefeeds, they just also add carriage returns.
Also applies to Mac but yeah
Didn’t Mac use just CR line endings at some point?
Classic Mac OS did, pre OS X aka pre 2001.
Long long ago, but yeah
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
you can also delete them recursively with
find . -name '*.DS_Store' -type f -print -delete
(adapted from this script)
Why is there a
*
in front ofDS_Store
?
Seems like fastly made a small mistakefind . -name '.DS_Store' -type f -print -delete
would just match the exact file and is faster.
As much as they love to sue people, I don’t understand why Nintendo doesn’t go after Apple for trademark infringement, so that they’re forced to inally come up with a better method of storing folder attributes.
I’m pretty sure Apple has been using those files since before Nintendo released the DS.
And emulation is legal too, but that doesn’t stop Nintendo.
Not sure they’d be stupid enough to go after someone as big as Apple though.
This is probably not a relevant counter point, just a(n un)fun fact, but Nintendo put in a patent for throwing a capture ball at monsters after Pal World was released and Pal World has to change some stuff (though I’m not sure if they’re doing it to avoid going to court because they’re concerned or if they’re being compelled).
Because it’s not marketed as a product. Apple isn’t trademarking “DS”.
Stop ruining my joke.
See also: Let’s roll our own .zip implementation that only Mac can reliably read for…reasons
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
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.
Why didn’t they add resource/data forks in APFS?
APFS still supports resource forks just fine - I can unstuff a 1990’s Mac application in Sequoia on a Apple Silicon Mac, copy it to my Synology NAS over SMB, and then access that NAS from a MacOS 9 Mac using AFP and it launches just fine.
The Finder just doesn’t use most of it so that it gets preserved in file copies and zip files and such.
I would also like a word with “bonjour” process while we’re at it.
Thought it was a virus when I first discovered it.
“Bonjour, i’m here to fuck shit up”
Adieux!
TIL there’s a plural of adieu
My French grammar is perhaps not the best
Lol all good. I took French in high school and was pretty sure their wasn’t an x on the end, but I looked it up and it technically is correct in old French as far as I can tell. Perhaps someone who speaks proper French can chime in.
That was what caused duplicates on setting the printer as default on dad’s PC. Just disable active scanning for new printers in the config. Was quite some detective work with examining the service file and recursively grepping /etc for variable names multiple times.
no one? Ok
Idk what all it does and doesn’t do, but installing it in Windows lets you find your Raspberry Pi by its “.local” hostname. I know it was originally for printers or something.
It’s for local service discovery. Those services may be printers on your network, or another computer sharing music on iTunes (which is why as a Windows user you’d usually get Bonjour when installing iTunes). Or maybe it’s your Raspberry Pi.
It feels iffy because it comes bundled with other software without you being asked (IIRC) and it autoruns on startup. And I mean 20 years ago when iPods were a thing and people had to use iTunes on Windows, a couple dozen megabytes of RAM really mattered too. Hell I had 512 MB back when I had an iPod (and therefore iTunes)
All i figured out for certain is that it came bundled with itunes.
Would you have felt differently if it was called Rendezvous?
Probably not. I know better then to trust the french /s
Isn’t bonjour the reason that devices like printers famously worked so much better on Mac than windows? I feel like I read an article about that like a decade or two ago.
DS DS DS D-not gonna work here anymore, anyway.
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.
I am not familiar with MacOS, but that seems like a nightmare. What is the purpose of these files?
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.
Why not make the file when a change is made like with windows desktop.ini files?
I don’t think the code is available for people to figure out whether there’s a reason or if it’s completely arbitrary.
Iirc they’re indexes for the system wide search feature, Spotlight
Is there a valid reason not to store that [[anywhere else]], ideally in Spotlight’s data?
Maybe. There are many ways to move files and directories around without using Finder, at which point all indexed data about those files and directories will be stale. Forcing something as core as
mv
to update Spotlight would be significantly worse, I think. By keeping the.DS_Store
files co-located with the directory they index, moving a directory does not invalidate the index data (though moving a file without using Finder still does). Whether retaining indexing on directory moves is a compelling enough reason to force the files everywhere is probably dependent on whether that’s a common enough pattern among workflows of users, and whether spotlight performance would suffer drastically if it were reliant on a central store not resilient against such moves.So, it’s probably a shaky reason at best.
In Unixy environments like Mac and Linux the application can’t always know what the mountpoint of a drive is so it’s not always obvious which root folder to put those index/config files in if it’s a portable drive or network drive. Some mountpoints are standard per each OS, but not everything sticks to the standard.
Nope, that’s the .Spotlight-{INDEX} folder which is also often created 😁
You’d want that, but a lot of programs do that, both in Windows and Linux.
e.g. The
.directory
files with the[
spec by ]freedesktop.orgFWIW 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.
Well, those are different specifications. Apple(who wants everything for themselves) vs FDO(whose main goal seems to be interoperability)
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…
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.
I am not exactly a programmer. What is the .DS_Store file for?
Kind of a mac’s version of desktop.ini. Remembers layouts and other metadata about a folder.
It’s for storing your DSs, obviously.
Not for buying new DSiware games?
I learned of those files outside the context of programming. When program or file zip packages contained these random ds store files and I looked up what they are.
Turns out, it’s metadata
cachingfor macOS. Irrelevant and does not belong into [distributed or shared] packages./edit: It’s been a long time ago. Looking at it again, I guess it adds folder metadata, so it could be useful when distributing to other macOS. But for other OS, it’s noise. Either way, usually it’s not intentionally included.
fd -HI '^\.DS_Store$' $HOME -tf -X rm -v
find . -name “.DS_Store” -type d -exec rm -rf {} + -print
That doesn’t work,
DS_Store
are files not directories ( you need to use-type f
).
An equivalentfind
command would be:
find "$HOME" -type f -name '.DS_Store' -delete -print
find
takes a while;fd
is way, way faster, butfind
is preinstalled, so there is that.
Where did this art come from? It seems like the cover to a tabletop wargame about the french and indian war or something.
https://amp.knowyourmeme.com/memes/white-man-has-been-here
In 2000, American painter Robert Griffing created a painting titled, Friend or Foe, wherein, two Native American hunters are examining footprints made in the snow.
Super cool, I realized I was thinking of the wargame A Few Acres Of Snow by martin wallace (the designer of the modern classics, Brass Birmingham and Brass Lancashire)
https://boardgamegeek.com/boardgame/79828/a-few-acres-of-snow
Found one of these in the firmware zip file of my soundbar today.