Shameless plug: I am the author.

  • dinckel@lemmy.world
    link
    fedilink
    arrow-up
    69
    ·
    2 months ago

    Golang puts shit specifically in $HOME/go. Not even .go. Just plain go.

    Why is it so difficult to follow industry standards

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 months ago

      off the shelf go was too annoying for me

      Nowadays I set GOENV_ROOT to an XDG location and use goenv instead.

  • Wispy2891@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    2 months ago

    100% agree and I also despise devs who do this on windows, instead of using %appdata% they’re using c:\users\username\.myappisimportantandtotallydeservesthisdir

  • dohpaz42@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 months ago

    Here is a more concise way to achieve the same thing:

    ls -ACd ~/.??*/ | sed -e "s#$HOME/##g"
    
    • palordrolap@kbin.run
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 months ago

      I think that can be boiled down to only cd; echo .*/

      Maybe throw a ;cd - on the end if the change of directory is unwanted.

    • Samueru@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      ls -A | grep "^\."

      I had to make a dummy .dotfile to test because I don’t have hidden files in my home.

    • dizzy@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Whoa I’m a stickler for getting as much as I can out but even I have .zshenv and some other too hard to figure out things in there. How’d you manage a total wipeout?

      • Samueru@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 months ago

        zsh is actually easy and it is detailed in the archwiki

        You have to set $ZDOTDIR in /etc/zsh/zshenv and iirc that was the only location that required root to edit.

        For the rest of stuff, here is how I fix steam for example and you can check the rest of my dotfiles for how I configured zsh and all of that.

        Although I haven’t updated them, I still had a .local directory back then, it was 1 week ago that I changed .local for Local and that let to an issue with distrobox which I made a PR fixing it that’s still open though.

      • Samueru@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        It’s empty lol, it’s a directory on tmpfs that i use to build programs and similar stuff to not be hammering my ssd with unnecessary writes.

        I have $XDG_CACHE_HOME in tmp as well and I moved the mesa sharer caches to $XDG_STATE_HOME as that’s really the only thing so far I’ve needed to preserve.

        • tabular@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 months ago

          tmpfs (…) to build programs (…) to not be hammering my ssd with unnecessary writes

          Sounds useful. How did you setup the directory?

          Running df tells me “tmpfs” is mounted on /run. If I build in that that directory then would it be stored in RAM, or do I need to do something else?

          • Samueru@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            2 months ago

            I have /tmp in my fstab with these mount options.

            tmpfs /tmp tmpfs rw,noatime,size=20G 0 0

            And the rest of the setup is done in my zprofile

            • tabular@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              2 months ago

              I think I should be able to get this working following your zprofile file. Thanks!

  • Mactan@lemmy.ml
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 months ago

    there’s no place like 127.0.0.1

    there’s no place like XDG_CONFIG_HOME.

  • wvstolzing@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    vim now has an option to put the .vim folder in ~/.config; though I’m not sure if the default plugin/package & syntax folders can be set under ~/.local/share.

  • davel@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    11
    ·
    2 months ago

    This would just further complicate things for me. It assumes that 1) the system even has a windowing system/desktop environment or 2) all the installed software is XDG-aware. Most of the time I’m fiddling with headless environments.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      2 months ago

      The spec doesn’t make those assumptions at all, idk where that’s coming from.

      I have headless machines with XDG vars configured and ones without them. XDG compliant software works in either case, but I’m less likely to use a piece of software that clutters my $HOME.

  • GolfNovemberUniform@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    16
    ·
    2 months ago

    But what’s the difference? It’ll be in /home anyways and I heard BSD had some issues with something that could be XDG.

    • mrvictory1@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      2 months ago

      Better organization and backup / restore. For example if you want to restore config files but don’t want to move over the large “.local” folder, applications that write to $HOME will create diifculty.

    • just_another_person@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      2 months ago

      Because, like /etc, you know there is a designated place for config files. It’s already set for you right there, and there is a standard for it.

      • GolfNovemberUniform@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        4
        ·
        2 months ago

        /etc can’t be edited on immutable distros and usually apps store the editable config in /home/config and make the /etc one kind of read-only.

        • bsergay@discuss.online
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          2 months ago

          /etc can’t be edited on immutable distros

          False on at least Fedora Atomic[1], NixOS[2] and openSUSE Aeon[3]

          Which ‘immutable’ distros are you referring to?


          1. On Fedora Atomic, changing /etc is literally identical to how it goes any other distro; or at least 1-to-1 as on traditional Fedora. The bonus is that a pristine copy of the original /etc is kept inside a sub-directory of /usr. Furthermore, all changes compared to the pristine copy are kept track of.
          2. On NixOS, changes have to be applied through configuration.nix. Though, regardless, it’s effectively possible to edit and populate /etc like it is on other distros.
          3. It’s explicitly mentioned that /etc does not belong to the immutable base.
          • GolfNovemberUniform@lemmy.ml
            link
            fedilink
            arrow-up
            1
            arrow-down
            3
            ·
            edit-2
            2 months ago

            Fedora Atomic allowed it recently afaik. I’m always forgetting this. And NixOS is not immutable because of R/W FS.

            • bsergay@discuss.online
              link
              fedilink
              arrow-up
              2
              arrow-down
              1
              ·
              2 months ago

              No sorry, Fedora Atomic has allowed changes to /etc since at least 2019. Regarding NixOS, the consensus is that it’s an immutable distro. The immutability of /nix/store/ suffices for this.

              Your notion on Fedora Atomic was false. So, what other ‘immutable’ distro did you have in mind when making that comment?

                • bsergay@discuss.online
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  2 months ago

                  Thank you for your honesty! I only intend for the truth to prevail and/or to reach mutual understanding. So please don’t feel attacked. If somehow I came off as such, my apologies; that has never been my intent.

    • SmokeInFog@midwest.social
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      2
      ·
      edit-2
      2 months ago

      But what’s the difference?

      I can only imagine someone asking this if they a) don’t use the terminal except if Stackexchange says they should and b) have yet to try and cleanup a system that’s acquired cruft over a few years. If you don’t care about it, then let me flip that around and ask why you care if people use XDG? The people who care about it are the people in the spaces that concern it.

      Off the top of my head this matters because:

      • it’s less clutter, especially if you’re browsing your system from terminal
      • it’s a single, specified place for user specific configs, session cache, application assets, etc. Why wouldn’t such important foundational things required for running apps not be in a well defined specification? Why just dump it gracelessly in the user’s root folder outside of pure sloppy laziness?
      • it makes uninstalling apps easier
      • it makes maintenance easier
      • it makes installing on new machines easier

      It’ll be in /home anyways and I heard BSD had some issues with something that could be XDG.

      🙄

        • SmokeInFog@midwest.social
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          2 months ago

          It’s weird to me that you think I think that. I do primarily browse files by terminal, but not always. Before I got into heavy terminal use I was a power user of Nemo. In any case, dumping everything in /home does not make for a better gui file browsing experience, either

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

            The implication seemed to be “if you don’t care exactly where all your files are you must not use terminal”. Which I still don’t get. Just about anyone who would even be in a community like this uses terminal a lot anyway.