![]() The system shall initialize this variable at the time of login to be a pathname of the user's home directory. POSIX specifies a few environment variables that are relevant to this context: HOME For example, they don't typically force users home directory to be under /home. That said, distributions generally allow the user to use the file system in unconventional configurations. ![]() Most distros conform to POSIX standard, and follow (to varying degree) the Filesystem Hierarchy Standard by Linux Foundation, which is similar to the directory structures of other UNIX like systems. The filesystem structure is determined by the distro. It does not have a concept of user directories. If you really want to adhere to the current standard I would place my log files in $XDG_CACHE_HOME since log files aren't required to run the program. This would effectively introduce another environment variable since $XDG_DATA_HOME usually points to $HOME/.local/share and this hypothetical environment variable ( $XDG_STATE_HOME?) would point to $HOME/.local/state The files are also not the data files that an application works on.Ī default folder for a future STATE category might be: $HOME/.local/state On the other hand the data is rather volatile and does not make sense to be checked into a VCS. However it should still persist on reboots of the system unlike cache data that a user might consider putting in a TMPFS. The above example information is not essential data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |