3 ms·
I'm not sure about home dir but a thing I've needed is a standard place to store app stuff. On Windows it's a mess. There's AppData/Local, AppData/LocalLow, App
by gfxgirl 6y ago
I'm not sure about home dir but a thing I've needed is a standard place to store app stuff. On Windows it's a mess. There's AppData/Local, AppData/LocalLow, AppData/Remote and many apps store a ton of stuff in their app folder in c:\programs etc... On Mac I guess it's Library/Application Data but there's a bunch of other folders under Library. On Linux I read somewhere it's .config but there was no .config on my Linux installs and it seems strange to me that apps should be required to make this folder vs the OS and that the OS doesn't tell me where it is it's just convention. But in any case, I think I wish some standard library handled this.
- dijit 6y agoYes, I understand, and I feel your plight, as it stands this is what I would use: $APPDATA on windows[0] or $LOCALAPPDATA $XDG_CONFIG_HOME on linux[1], which is where you're getting the ~/.config from. For MacOS, it's a mess[2], you should probably use ~/Library/Application Support/script_name/ for most things though. [0]: https://ss64.com/nt/syntax-variables.html https://ss64.com/nt/syntax-variables.html [1]: https://wiki.archlinux.org/index.php/XDG_Base_Directory https://wiki.archlinux.org/index.php/XDG_Base_Directory [2]: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1 https://developer.apple.com/library/archive/documentation/Fi...
- jcranmer 6y ago> $XDG_CONFIG_HOME on linux[1], which is where you're getting the ~/.config from. XDG_CONFIG_HOME is ~/.config if not otherwise specified.
- deleted 6y ago[deleted]