Shameless plug: I am the author.

  • davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    13
    ·
    1 month 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.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      25
      ·
      1 month ago

      It’s not too hard to check for XDG support first and use a few hardcoded directory paths if that is unavailable.

      • davel [he/him]@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        12
        ·
        1 month ago

        It’s even easier to ignore it altogether, which is what I do. I don’t use “a few” non-XDG-aware things; I use lots an lots of them.

        • hallettj@leminal.space
          link
          fedilink
          English
          arrow-up
          25
          ·
          1 month ago

          Are you saying that you don’t want to write your software according to the XDG spec, or that you don’t want to set the XDG env vars on your system? If it’s the second that’s fine - apps using XDG work just fine if you ignore it. If it’s the first I’d suggest reconsidering because XDG can make things much easier for users of your software who have system setups or preferences that are different from yours; and using XDG doesn’t cause problems for users who ignore it.

          OP’s recommendation is aimed mostly at software authors.

          • davel [he/him]@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            10
            ·
            1 month ago

            I meant the second. But as to the first: I generally write in-house software for headless server environments, and my peers are going to push back if I add irrelevant XDG foo to my PR.

    • hallettj@leminal.space
      link
      fedilink
      English
      arrow-up
      24
      ·
      1 month ago

      So yes, “XDG” stands for “Cross-Desktop Group” - but I don’t agree that using the spec assumes a windowing system. The base directory spec involves checking for certain environment variables for guidance on where to put files, and falling back to certain defaults if those variables are not set. It works fine on headless systems, and on systems that are not XDG-aware (I suppose that means systems that don’t set the relevant env vars).

      OTOH as another commenter pointed out the base directory spec can make software work when it otherwise wouldn’t on a system that doesn’t have a typical home directory layout or permissions.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      1 month 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.