mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-12 21:52:33 +00:00
chore(docs): rework readme
This commit is contained in:
69
.github/README.md
vendored
69
.github/README.md
vendored
@@ -68,28 +68,51 @@ The folder structure follows [XDG Base Directory Specification][xdg] where possi
|
|||||||
| `$XDG_DATA_HOME` | `$HOME/.local/share` | User-specific data files |
|
| `$XDG_DATA_HOME` | `$HOME/.local/share` | User-specific data files |
|
||||||
| `$XDG_STATE_HOME` | `$HOME/.local/state` | App state that should persist between restarts |
|
| `$XDG_STATE_HOME` | `$HOME/.local/state` | App state that should persist between restarts |
|
||||||
|
|
||||||
- `$XDG_BIN_HOME` defines directory that contains local binaries.
|
#### XDG_BIN_HOME (`$HOME/.local/bin`)
|
||||||
- `$XDG_DATA_HOME` defines the base directory relative to which user-specific data
|
|
||||||
files should be stored.
|
`$XDG_BIN_HOME` defines directory that contains local binaries.
|
||||||
- If `$XDG_DATA_HOME` is either not set or empty, a default equal to
|
|
||||||
`$HOME/.local/share` should be used.
|
User-specific executable files may be stored in `$HOME/.local/bin`.
|
||||||
- `$XDG_CONFIG_HOME` defines the base directory relative to which user-specific
|
Distributions should ensure this directory shows up in the UNIX `$PATH`
|
||||||
configuration files should be stored.
|
environment variable, at an appropriate place.
|
||||||
- If `$XDG_CONFIG_HOME` is either not set or empty, a default equal to `$HOME/.config` should be used.
|
|
||||||
- `$XDG_STATE_HOME` defines the base directory relative
|
#### XDG_DATA_HOME (`$HOME/.local/share`)
|
||||||
to which user-specific state files should be stored.
|
|
||||||
- If `$XDG_STATE_HOME` is either not set or empty, a default equal to `$HOME/.local/state` should be used.
|
`$XDG_DATA_HOME` defines the base directory relative to which
|
||||||
- The `$XDG_STATE_HOME` contains state data that should persist between (application) restarts,
|
user-specific *data files* should be stored.
|
||||||
but that is not important or portable enough to the user that it should be stored in `$XDG_DATA_HOME`.
|
|
||||||
- It may contain:
|
If `$XDG_DATA_HOME` is either not set or empty,
|
||||||
- actions history (logs, history, recently used files, …)
|
a default equal to `$HOME/.local/share` should be used.
|
||||||
- current state of the application that can be reused
|
|
||||||
on a restart (view, layout, open files, undo history, …)
|
#### XDG_CONFIG_HOME (`$HOME/.config`)
|
||||||
- User-specific executable files may be stored in `$HOME/.local/bin`.
|
|
||||||
Distributions should ensure this directory shows up in the UNIX `$PATH`
|
`$XDG_CONFIG_HOME` defines the base directory relative to which
|
||||||
environment variable, at an appropriate place.
|
user-specific *configuration files* should be stored.
|
||||||
- `$XDG_DATA_DIRS` defines the preference-ordered set of base directories
|
|
||||||
to search for data files in addition to the `$XDG_DATA_HOME` base directory.
|
If `$XDG_CONFIG_HOME` is either not set or empty,
|
||||||
The directories in `$XDG_DATA_DIRS` should be seperated with a colon ':'.
|
a default equal to `$HOME/.config` should be used.
|
||||||
|
|
||||||
|
#### XDG_STATE_HOME (`$HOME/.local/state`)
|
||||||
|
|
||||||
|
`$XDG_STATE_HOME` defines the base directory relative to which
|
||||||
|
user-specific *state files* should be stored.
|
||||||
|
|
||||||
|
If `$XDG_STATE_HOME` is either not set or empty,
|
||||||
|
a default equal to `$HOME/.local/state` should be used.
|
||||||
|
|
||||||
|
The `$XDG_STATE_HOME` contains *state data* that should
|
||||||
|
*persist between (application) restarts*, but that is not important or
|
||||||
|
portable enough to the user that it should be stored in `$XDG_DATA_HOME`.
|
||||||
|
|
||||||
|
- It may contain:
|
||||||
|
- actions history (logs, history, recently used files, …)
|
||||||
|
- current state of the application that can be reused
|
||||||
|
on a restart (view, layout, open files, undo history, …)
|
||||||
|
|
||||||
|
#### XDG_DATA_DIRS
|
||||||
|
|
||||||
|
`$XDG_DATA_DIRS` defines the preference-ordered set of base directories
|
||||||
|
to search for data files in addition to the `$XDG_DATA_HOME` base directory.
|
||||||
|
The directories in `$XDG_DATA_DIRS` should be seperated with a colon ':'.
|
||||||
|
|
||||||
[xdg]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
[xdg]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||||
|
|||||||
Reference in New Issue
Block a user