Shameless plug: I am the author.

  • danA
    link
    fedilink
    arrow-up
    5
    ·
    5 months ago

    Use the environment variables.

    • sfera@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      I do. But you might have misunderstood my question. I was not asking for assistance. I was just curious if there are libraries available which allow easy adoption of the XDG specification. I imagine that such abstractions would be useful for multi-platform software and generally to lower the bar for adoption.

      • danA
        link
        fedilink
        arrow-up
        2
        ·
        5 months ago

        Depends on the programming language. In C# for example, there’s an API to get special folder paths that works in all supported environments (Windows, Linux, MacOS, Android, and I think iOS too). On Linux, it includes fallbacks in case the environment variables aren’t set.