SKBLu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months ago

.DS_Store

sh.itjust.works

message-square
57
link
fedilink
1.18K

.DS_Store

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months ago
message-square
57
link
fedilink
alert-triangle
You must log in or # to comment.
  • Lazycog@sopuli.xyz
    link
    fedilink
    arrow-up
    80
    arrow-down
    2
    ·
    edit-2
    5 months ago

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

    .desktop desktop.ini

    Edit: fixed the filename

    • i_dont_want_to@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      93
      ·
      5 months ago

      Thumbs.db

      • Frisbeedude@feddit.org
        link
        fedilink
        arrow-up
        9
        ·
        5 months ago

        ehthumbs_vista.db

      • skuzz@discuss.tchncs.de
        link
        fedilink
        arrow-up
        8
        ·
        5 months ago

        https://www.thewindowsclub.com/how-to-disable-windows-thumbs-db-files-from-being-created this kills that.

        • The Ramen Dutchman@ttrpg.network
          link
          fedilink
          arrow-up
          1
          ·
          5 months ago

          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.

      • Furbland@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        I installed an old program the other day that added a Thumbs.db file from 2008 to every folder containing images as it extracted the program files to disk.

    • Wolfizen@pawb.social
      link
      fedilink
      English
      arrow-up
      57
      ·
      5 months ago

      System Volume Information

      • Furbland@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        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

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      edit-2
      5 months ago

      I’ve caught the whiff of some Linux too…

      lost+found

    • Furbland@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      deleted by creator

  • Hupf@feddit.org
    link
    fedilink
    arrow-up
    62
    ·
    5 months ago
    Thumbs.db
    
  • FQQD@lemmy.ohaa.xyz
    link
    fedilink
    arrow-up
    57
    ·
    5 months ago

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

    • skuzz@discuss.tchncs.de
      link
      fedilink
      arrow-up
      27
      ·
      5 months ago

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

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      17
      arrow-down
      1
      ·
      5 months ago

      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

      • FQQD@lemmy.ohaa.xyz
        link
        fedilink
        arrow-up
        10
        ·
        5 months ago

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

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          5 months ago

          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.

  • webghost0101@sopuli.xyz
    link
    fedilink
    arrow-up
    42
    arrow-down
    1
    ·
    edit-2
    5 months ago

    I would also like a word with “bonjour” process while we’re at it.

    Thought it was a virus when I first discovered it.

    • Eager Eagle@lemmy.world
      cake
      link
      fedilink
      English
      arrow-up
      21
      ·
      5 months ago

      no one? Ok

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      5 months ago

      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.

      • webghost0101@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        5 months ago

        All i figured out for certain is that it came bundled with itunes.

    • MonkderVierte@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      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.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      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.

  • Natanael@lemmy.zip
    link
    fedilink
    English
    arrow-up
    39
    ·
    5 months ago

    I saw somebody with Nintendo .DS_store as a username

    • Amon@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      5 months ago

      'u/Nintendo 3/.DS_store'

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    37
    ·
    5 months ago

    __MACOSX folders hither and yon.

  • Cargon@lemmy.ml
    link
    fedilink
    arrow-up
    31
    ·
    5 months ago

    Found one of these in the firmware zip file of my soundbar today.

  • skuzz@discuss.tchncs.de
    link
    fedilink
    arrow-up
    30
    ·
    5 months ago

    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

    Helps a bit.

    • M.int@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      Don’t forget:

      defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
      
  • Fat Tony@lemm.ee
    link
    fedilink
    arrow-up
    19
    ·
    5 months ago

    I am not exactly a programmer. What is the .DS_Store file for?

    • jwt@programming.dev
      link
      fedilink
      arrow-up
      24
      ·
      5 months ago

      It’s for storing your DSs, obviously.

    • the_crotch@sh.itjust.works
      link
      fedilink
      arrow-up
      22
      ·
      5 months ago

      Kind of a mac’s version of desktop.ini. Remembers layouts and other metadata about a folder.

    • Bezier@suppo.fi
      link
      fedilink
      arrow-up
      7
      ·
      5 months ago

      Shit like this: https://www.idownloadblog.com/2016/07/07/add-image-color-finder-folder-mac/

    • Kissaki@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      5 months ago

      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 caching for 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.

  • bitcrafter@programming.dev
    link
    fedilink
    arrow-up
    24
    arrow-down
    14
    ·
    5 months ago

    Linux user has been here.

    How can you tell?

    *sniff* Still smells like smug.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      20
      arrow-down
      1
      ·
      edit-2
      5 months ago

      LF line endings.

      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        5 months ago

        Also applies to Mac but yeah

        • clb92@feddit.dk
          link
          fedilink
          English
          arrow-up
          6
          ·
          5 months ago

          Didn’t Mac use just CR line endings at some point?

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            7
            ·
            5 months ago

            Long long ago, but yeah

          • Scoopta@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            5 months ago

            Classic Mac OS did, pre OS X aka pre 2001.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        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…

        • Faresh@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 months ago

          Windows also uses linefeeds, they just also add carriage returns.

    • MonkderVierte@lemmy.ml
      link
      fedilink
      arrow-up
      18
      ·
      5 months ago

      *sniff* Still smells like smug.

      .Trash-1000

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    6
    ·
    5 months ago

    DS DS DS D-not gonna work here anymore, anyway.

  • supersquirrel@sopuli.xyz
    link
    fedilink
    arrow-up
    5
    ·
    5 months ago

    Where did this art come from? It seems like the cover to a tabletop wargame about the french and indian war or something.

    • Sjmarf@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      5 months ago

      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.

      • supersquirrel@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        5 months ago

        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

  • M.int@lemm.ee
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    5 months ago

    fd -HI '^\.DS_Store$' $HOME -tf -X rm -v

    • ddh@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      5 months ago

      find . -name “.DS_Store” -type d -exec rm -rf {} + -print

      • M.int@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        5 months ago

        That doesn’t work, DS_Store are files not directories ( you need to use -type f).
        An equivalent find command would be:
        find "$HOME" -type f -name '.DS_Store' -delete -print
        find takes a while; fd is way, way faster, but find is preinstalled, so there is that.

  • kipo@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    5 months ago

    Blue Harvest for Mac will continually clean your removable drives of these files.

    • M.int@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      5 months ago

      This seems like a bit of a scam:
      On your external drives you can prevent the creation of .DS_Store

      defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
      defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
      

      If you really want to continuously delete DS_Store from both your internal and external hard drives you can set up a cronjob:

      15 1 * * * root find / -name '.DS_Store' -type f -delete
      
    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      When I had a Mac, literally the first thing I did was set up a Hazel rule to delete every single .DS_Store in every folder.

  • burgermeister@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Every fucking folder in the file share has one of these

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 177 users / day
  • 2.86K users / week
  • 10.9K users / month
  • 14.5K users / 6 months
  • 1 local subscriber
  • 24.8K subscribers
  • 1.33K Posts
  • 30.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org