AppData folder: am I a joke to you?
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.
I gave up using the default documents folder because a lot of game developers think that is a good place to store the saves
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?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
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.
deleted by creator
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.
They are using windows wrong, put everything on the desktop and don’t worry about all those scary files everywhere else.
/S
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
The FHS is a real thing, the second picture is some indian techblog nonsense. ”Unix System Resources” lmao.
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
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.
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
I believe the intent is to use appdata for user-specific configs and programdata for system-wide configs.
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
Are dotfiles a thing on Windows? It’s been a while since I used it.
No. Hiding files is still just an attribute.
Actually, technically, it’s two. Files marked as system files are treated as hidden as well…
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.
Nobody wants to develop a tag-based filesystem?
It’s basically in use today. Apparently younger generations are more used to searching for files rather than structuring them. https://www.theverge.com/22684730/students-file-folder-directory-structure-education-gen-z
Developing it would be way above my skills but I’ve been fantasising about it for a long time. https://lemmy.world/comment/14344097
Same. I think it would be more friendly for end-users too.
Just sounds messy and impractical
In my mind you could use it as your regular hierarchical file system, but the hierarchies are dynamic to your associations or needs.
Well, tree-based as we know it, is messy. Can’t have a file that belongs to two places. Next time you look for it, you climb the tree, only to not find it in the other place the file belongs to.
What would that be?
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.
Don’t forget about good ol
.minecraft
At least it’s in
, and not in appdata
. userprofile
.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.Amazed that no one can figure out a .config/ or .local/ already
Sure, AppData exists, but do you expect them to… read?
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.
This is why i never use the default folders, I will always make my own elsewhere.
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.
don’t do
ls -la
at your home directory