• 6xpipe_@lemmy.world
    link
    fedilink
    arrow-up
    80
    arrow-down
    3
    ·
    edit-2
    1 year ago

    XDG gang, rise up!

    Also, I know that this community and dot-files in general are Unix based, but this holds true for Windows development as well. You should be putting app files in the users’ %APPDATA% directory, not their user folder. It’s probably even more important since Windows doesn’t autohide dot files.

    • fartsparkles@sh.itjust.works
      link
      fedilink
      arrow-up
      48
      ·
      edit-2
      1 year ago

      The My Documents / Documents folder on Windows is a dumping ground for game saves and random applications. I no longer use it for saving my documents anymore…

      • Pennomi@lemmy.world
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        Yep, my ~/Projects folder is where I keep anything I need to actually find. All the normal places are full of random cruft.

      • CoderKat@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        To be honest, pretty much all my files that actually matter are under my Dropbox folder. Everything else is ephemeral. I mostly depend on Steam or the likes to backup game saves. Not much else I care about. I’ve upgraded my PC a few times (with no full backups) and never missed a single thing that got lost in the upgrade.

    • Zeth0s@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      Unfortunately not even Microsoft does that… On windows having a logical order is a lost battle

  • AKADAP@lemmy.ml
    link
    fedilink
    arrow-up
    58
    arrow-down
    1
    ·
    1 year ago

    I absolutely despise the following directories: Documents, Music, Pictures, Public, Templates, Videos. Why? Because applications randomly dump stuff into these directories and fill them with junk files. I don’t want any application putting anything into directories I actually use, unless I explicitly tell them to. It is not possible to keep your files organized if applications randomly dump trash files into them.

    • herr@lemmy.world
      link
      fedilink
      arrow-up
      39
      arrow-down
      1
      ·
      1 year ago

      Same shit happens on Windows. Games will just install their shit literally all over OS with no rhyme or reason to it.

      Why can’t the save game and config.ini just be in the main god damn game directory? Nobody knows.

      • PixxlMan@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I have my own directories on windows. I never use system provided directories for my own stuff, it always sucks. And if I want to move directories between drives or just change permissions, all hell breaks loose because everything depends on the default locations… So I just leave them be if I can.

      • nayminlwin@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        They’re probably trying to handle per user config. But nowadays, there’s mostly only one user using a machine.

    • akash_rawal@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I just keep my stuff far away from $HOME and not bother about the junk. Not even a subdirectory under $HOME.

      Same goes for ’ My documents’ on windows.

    • Tiger Jerusalem@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      These places are a cesspool of junk in every system, it’s incredible. MacOS has this kind of shit too, just like Windows, with apps dumping crap there without a care.

  • ouch@lemmy.world
    link
    fedilink
    arrow-up
    48
    arrow-down
    3
    ·
    1 year ago

    If you care, please take time to upvote or file bugs on packages that don’t follow XDG. Or even better, make PRs.

    • aulin@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      A (very well used) program I use places files in $HOME. Someone argued for changing to $XDG_CONFIG or at least add that as an option. The dev, being used to the old school way, gave the exact opposite reason: that .config was just an extra level of organization when dotfiles are what the home dir is for. So I’m not sure how successful you would be with that approach.

      To be clear, I am clearly on the side of XDG, myself.

    • cbarrick@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      3
      ·
      1 year ago

      XDG is a Red Hat thing.

      Stuff outside of their influence is unlikely to change, like OpenSSH or ZSH.

  • guckfoogle@sh.itjust.works
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    1 year ago

    You might wanna backup your dotfiles somewhere remote too. I literally lost dotfiles that I’d been building up for years because I couldn’t remember the password to my Linux machine after coming back from vacation. Funny enough though, a couple hours after nuking my OS I magically remember my password.

    • pitbuster@lemmy.ml
      link
      fedilink
      English
      arrow-up
      23
      arrow-down
      1
      ·
      edit-2
      1 year ago

      Unless you disk was encrypted, you could have booted up a live distro and back up the files you needed (or even overwrite the shadow file to get a new password)

    • conc@lemmy.ml
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      After two years of typing in the same boot pass on my same laptop at my same job I woke up one day and couldn’t remember it. Almost died trying. Right as I was reaching out to my admin it came to me.

    • pomodoro_longbreak@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Oof. Yeah, I once forgot my LastPass password literally less than 30 seconds after entering it on another device. Muscle memory versus active memory kind of thing.

  • herr@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    edit-2
    1 year ago

    And wtf is with anaconda3 just permanently changing your “user@machine” terminal prompt?? Who thought that was a good idea?

  • Urist@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 year ago

    Tangentially related: I recently learned that there are tools for handling dotfiles such as chezmoi and yadm. I would suppose that after spending some time on backing up the dotfiles that matter one can purge the remainders without much issue. I also remember some tool that was made for the purpose of cleaning $HOME, but can not recall its name (if anyone knows please let me know).

  • Moonrise2473@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    I’d like to set nautilus to show hidden files, but I can’t stand the amount of “trash” there’s in home

    Everyone is thinking “my app is the best, it totally deserves a ~/.myappisthebest directory”

  • El Barto@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    4
    ·
    1 year ago

    A user may want to back it up as an important part of their system, control it’s permissions,

    control its* permissions

    • bnjmn@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      If you spend a decent chunk of time on config, I’d say yes - it’s worth learning 🙂

        • kamenLady.@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          My casa es tu casa - you’re always welcome

          That being said, chezmoi helps you manage your personal configuration files (dotfiles, like ~/.gitconfig) across multiple machines.