• raspberriesareyummy@lemmy.world
    link
    fedilink
    arrow-up
    218
    arrow-down
    9
    ·
    2 days 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
      link
      fedilink
      English
      arrow-up
      51
      arrow-down
      1
      ·
      edit-2
      2 days 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

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day 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.

      • lengau@midwest.social
        link
        fedilink
        arrow-up
        46
        arrow-down
        1
        ·
        2 days 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
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          1
          ·
          2 days ago

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

      • vvv@programming.dev
        link
        fedilink
        arrow-up
        54
        ·
        2 days 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.

          • filcuk@lemmy.zip
            link
            fedilink
            arrow-up
            2
            ·
            18 hours 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.

          • Natanael@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            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.

          • FearfulSalad@ttrpg.network
            link
            fedilink
            arrow-up
            9
            ·
            2 days ago

            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.