AppData folder: am I a joke to you?

  • Ekky@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    1 hour ago

    Meme with the text: The world if everybody used the Filesystem Hierarchy Standard properly.

    I realize that the OP is a Windows case, but I’d be rich if I had a penny for every time a savegame or config file is stored somewhere totally whack.

    • scops@reddthat.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      48 minutes ago

      I’m completely self-taught when it comes to Linux, so I have some obvious gaps in my knowledge. I’ve looked for good write-ups on how Linux folders are intended for use and been unable to find a good resource. Thank you for sharing the official standard name. Reading up on it now.

      • Ekky@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        5
        ·
        21 minutes ago

        That’s respectable! But yeah, the FHS is something that’s surprisingly hard to find in-depth information about if you don’t already know about it.

        I think this page from systemd (or this page from the arch wiki, if you prefer formatting) has a decent description of not only the FHS, but also the more standard user/home structures.

  • orclev@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 hour ago

    .android is either from the Android SDK, or possibly Android Studio so blame either Google or IntelliJ. .vscode is Visual Studio Code which is made by Microsoft so your guess is as good as mine on that one. .eclipse is Eclipse and is a Java IDE approximately the age of dirt and might actually pre-date the AppData folder existing. .ssh is OpenSSH and has been around long enough on the *nix side of things that it might pre-date both AppData and the XDG folder conventions. Not sure about most of the rest.

  • Sonotsugipaa@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    3 hours ago

    Everyone here is talking about conventions used on Linux, but this looks like Windows Explorer to me…?
    Why are there so many directory names in there following Linux “hidden file” conventions, if that’s the case?

    • AnyOldName3@lemmy.world
      link
      fedilink
      English
      arrow-up
      27
      ·
      3 hours ago

      If you write cross-platform software, the easiest solution is usually to pretend everything’s Unix. You’ll hit some problems (e.g. assuming all filesystem APIs always use UTF-8 will bite you on Windows, which switched to UCS2 before UTF-8 or UTF-16 were invented, so now uses UTF-16 for Unicode-aware functions as that’s the one that’s ABI compatible with UCS2, and passing UTF-8 to the eight-bit-char functions requires you to opt into that mode explicitly), but mostly everything will just work. There’s no XDG_CONFIG telling you to put these files anywhere in particular, as Windows is Windows, so most things use ~ as a fallback, which Windows knows to treat as %USERPROFILE%.

    • keinBloudsinn@lemmings.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      3 hours ago

      This is not a Linux or Windows thing. It’s a lazy developer thing. It’s also another one of the ways that some devs will coddle the end-user because “learning a file directory system is hard.”

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 hours ago

    They are using windows wrong, put everything on the desktop and don’t worry about all those scary files everywhere else.

    /S

  • anyhow2503@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 hours ago

    The guidelines for Windows developers kinda suck tbh. Maybe it’s better these days, but plenty of weird legacy software behaviour can be blamed on MSDN.

  • Buffalox@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    7
    ·
    3 hours ago

    AFAIK appdata are stored in ~/.local/share, but you don’t even have that folder!?!?!
    It’s not the Linux convention that’s fucked up in this regard, but your system.
    If you want it stored in ~/AppData, you need to make a link to it from ~/.local/share.

    I’m no expert, so there may be other ways to do it. but apparently your system doesn’t follow conventions.

    • LainTrain@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      3
      ·
      edit-2
      2 hours ago

      He’s using windows.

      But while we’re on the subject, ~/.local/share is cancer and shouldn’t exist.

      The appropriate path is /usr/share.

      I have a SystemD service that will erase anything written to that godforsaken .local folder, and if that breaks your shitty software then I’ll assume your shitty software doesn’t work and delete it and spam issues about it until you fix it or find a different career doing something productive, like cooking McRibs.

      • Ekky@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 minutes ago

        I’m a little confused by that statement. Where should locally installed (non-sudo) applications, such as virtual python envs who are accessed by multiple other not-necessarily-python apps or perhaps baloo, flatpak, etc, store their shared data? I’m rather convinced that giving all users write access to /usr/share is a terrible idea.

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        59 minutes ago

        I have a SystemD service

        The irony is how lennart and his cancer approached standards, top to bottom.

        Now I want McRibs.

    • DaFuqs@feddit.org
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      4
      ·
      3 hours ago

      True on linux, but not on Windows. There is the “Appdata” (Application Data) sub folder for that. The users profile is meant for the users personal files - but way too many apps ignore that.

      Makes me think that probably a multiplatform-compat library points the apps there?

      • FooBarrington@lemmy.world
        link
        fedilink
        English
        arrow-up
        21
        ·
        3 hours ago

        No, not true on Linux. We have the XDG folder specifications to specifically not have our ~ cluttered with random shit.

        Doing this on Linux is no better than doing it on Windows.