• Lazycog@sopuli.xyz
    link
    fedilink
    arrow-up
    88
    arrow-down
    3
    ·
    edit-2
    1 month ago

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

    .desktop desktop.ini

    Edit: fixed the filename

  • webghost0101@sopuli.xyz
    link
    fedilink
    arrow-up
    47
    arrow-down
    2
    ·
    edit-2
    1 month 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.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      1 month 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.

      • boonhet@lemm.ee
        link
        fedilink
        arrow-up
        10
        ·
        1 month ago

        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)

    • MonkderVierte@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      1 month 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
      1
      ·
      1 month 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.

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

      Don’t forget:

      defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
      
  • boonhet@lemm.ee
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    1 month ago

    Just gitignore that. Same for dot idea and whatever vscode adds, if anything

    • andioop@programming.dev
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      1 month ago

      git add . > git commit -m "initial" > git push

      Later when I git status or just look at the repo online… “oh crap I let .DS_Store in didn’t I…” and then I remember to set up a .gitignore and make a new commit to take out the .DS_Store and put in the .gitignore.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      1 month ago

      Use this so that the things you need to share do get shared.

      .idea/*
      !.idea/codeStyles
      !.idea/runConfigurations
      
      .vscode/*
      !.vscode/settings.json
      !.vscode/tasks.json
      !.vscode/launch.json
      !.vscode/extensions.json
      !.vscode/*.code-snippets
      

      Note: I haven’t checked the vs code ones in depth, the list might not be perfect.

      • kora@sh.itjust.works
        link
        fedilink
        arrow-up
        14
        arrow-down
        1
        ·
        edit-2
        1 month ago

        I personally strongly advise against committing IDE junk to version control. Assuming your IDE workspace defaults are “sane” for the rest of the contributors is not a good practice.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          2
          ·
          1 month ago

          If your whole team uses the same IDE, what’s wrong with commiting things like run configurations and code styles? I agree in general, but a wholesale ban on it is very cargo culty to me. There can be legitimate times to do it.

          • kora@sh.itjust.works
            link
            fedilink
            arrow-up
            7
            arrow-down
            1
            ·
            1 month ago

            I elaborated on it below. Your team will grow and shrink. No guarantee that each developer will bring the same IDE. This is especially true for open source projects.

            If it works your team, no need to be dogmatic about it. Just be careful about what you put there and agree on a set of sane defaults with your team. Your project should build and run tasks without needing a specific IDE.

  • FQQD! @lemmy.ohaa.xyz
    link
    fedilink
    arrow-up
    10
    ·
    1 month ago

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

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      1 month 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

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          1 month 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.

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

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

    • M.int@lemm.ee
      link
      fedilink
      arrow-up
      8
      ·
      1 month 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
      6
      ·
      1 month 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.

  • supersquirrel@sopuli.xyz
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

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