AppData folder: am I a joke to you?

  • Ekky
    link
    fedilink
    English
    99
    edit-2
    3 months 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.

  • Sonotsugipaa
    link
    fedilink
    English
    363 months 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
      link
      fedilink
      English
      463 months 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%.

      • @merthyr1831@lemmy.ml
        link
        fedilink
        English
        93 months ago

        Lots of frameworks for applications and games have automatic translation of file paths to sensible directories, but when you’re writing software you’re probably doing shit fast and dirty until it’s ready for release, by that time you now have a bunch of people relying on your software so changing the file structure will cause loads of issues.

    • @Xanza@lemm.ee
      link
      fedilink
      English
      2
      edit-2
      3 months ago

      Because developers use cross-compilable languages to pump out Windows executables without knowing or understanding or caring about the Windows environment. I mean, ~/.whatever still works under Windows.

  • @BeigeAgenda@lemmy.ca
    link
    fedilink
    English
    193 months ago

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

    /S

    • ☂️-
      link
      fedilink
      English
      2
      edit-2
      3 months ago

      is it just me or these look a bit arbitrary

      and id love to understand the logic behind whats inside /home cause it seems way too chaotic to me

      • @jalkasieni@sopuli.xyz
        link
        fedilink
        English
        43 months ago

        The FHS is a real thing, the second picture is some indian techblog nonsense. ”Unix System Resources” lmao.

        • @IceFoxX@lemm.ee
          link
          fedilink
          English
          1
          edit-2
          3 months ago

          I can’t remember if I got it from here or from reddit. I just saved both of them.

          However. I know temporary mountpoints from the distributions e.g. under /run/media/user/*** and not under /mnt

    • Unbecredible
      link
      fedilink
      English
      23 months ago

      Why does Redhat auto mount my extra hard drives at /run/media but Debian & Co put it in /media/?

      hmmmm? Exactly. 9/11 was an inside job.

  • RubberDuck
    link
    fedilink
    English
    123 months ago

    Is there an easy to find style guide of how Windows would like you to use these things, cause I never found one.

    Appdata, my documents, program files… Everyone seems to be all over the place

    • PaintedSnail
      link
      fedilink
      English
      63 months ago

      I believe the intent is to use appdata for user-specific configs and programdata for system-wide configs.

    • @ILikeBoobies@lemmy.ca
      link
      fedilink
      English
      53 months ago

      Program files require admin

      Appdata doesn’t

      Documents doesn’t either but in theory it’s for files you want the user to edit or backup

    • @pivot_root@lemmy.world
      link
      fedilink
      English
      13
      edit-2
      3 months ago

      No. Hiding files is still just an attribute.

      Actually, technically, it’s two. Files marked as system files are treated as hidden as well…

      • Bruno Finger
        link
        fedilink
        English
        33 months ago

        With the downside that files marked as hidden on windows generally can’t be read by tools and scripts in the way you expect it.

  • @anyhow2503@lemmy.world
    link
    fedilink
    English
    93 months 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.

  • @orclev@lemmy.world
    link
    fedilink
    English
    8
    edit-2
    3 months 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.

  • @Tarnith@lemmy.ca
    link
    fedilink
    English
    53 months ago

    Amazed that no one can figure out a .config/ or .local/ already

    Sure, AppData exists, but do you expect them to… read?

  • @ronflex@lemmy.world
    link
    fedilink
    English
    43 months ago

    I hate it. I think a lot of devs who write cross-platform open-source software just use the %userprofile% automatic env variable to dump dotfiles in Windows since it can basically directly replace $HOME. In my opinion using something like %localappdata% is definitely preferred.

  • MrScottyTay
    link
    fedilink
    English
    43 months ago

    This is why i never use the default folders, I will always make my own elsewhere.

  • @JTskulk@lemmy.world
    link
    fedilink
    English
    33 months ago

    The nice thing about Free software is that distros can fix these programs that store things in the wrong location. My Debian home is a lot cleaner than my Arch.