• lengau@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        24 days ago

        I mean… At least that’s more correct… If the monkey’s paw is giving us things that are better but not ideal i’m gonna use the fuck out of it.

    • Artyom@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 month ago

      As an alternative, how about my entire cache in .config?

      Looking at you VSCode, with 3 unique cache folders.

  • dan@upvote.au
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    but please don’t hard-code ~/.config or $HOME/.config. Use the XDG_CONFIG_HOME environment variable, with $HOME/.config as a fallback if it’s not set.

    Many programming languages have a cross-platform implementation of this built in to their standard library. C# has Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) which uses XDG_CONFIG_HOME on Linux, local AppData on Windows, and whatever is the correct thing on MacOS (not very familiar with how things work on MacOS)

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Oh, no. Don’t even make it a hidden folder, it needs to be right there, front and center. And make sure you use a bunch of capital letters in the name, because you’re so fucking important.