Shameless plug: I am the author.

  • MonkderDritte@feddit.de
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    4 months ago

    What language? Python has PyXDG.

    In shell it’s simply

    XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME"/.local/share}"
    XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME"/.config}"
    etc.
    
    • sfera@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Thanks, I did not know about PyXDG. That was the type of thing I was asking about.