diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-05-24 16:18:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-05-25 15:02:41 +0000 |
| commit | bc7214cd885f08306f2fa833af2b5c72a6cc88c4 (patch) | |
| tree | add02e9ab9463a72c3d8428a38d4baaf8202a475 /doc | |
| parent | main: minor rewording of non-UTF8 locale warnings and errors (diff) | |
config: use $HOME instead of getpwuid() to retrieve users’s home dir
When searching for foot.ini, use $HOME instead of getpwuid() to
retrieve the user’s home directory.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/foot.1.scd | 6 | ||||
| -rw-r--r-- | doc/foot.ini.5.scd | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/foot.1.scd b/doc/foot.1.scd index 837da048..52ccebd1 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -361,7 +361,7 @@ foot will search for a configuration file in the following locations, in this order: - *XDG_CONFIG_HOME/foot/foot.ini* (defaulting to - *~/.config/foot/foot.ini* if unset) + *$HOME/.config/foot/foot.ini* if unset) - *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to */etc/xdg/foot/foot.ini* if unset) @@ -464,6 +464,10 @@ The following environment variables are used by foot: The default child process to run, when no _command_ argument is specified and the *shell* option in *foot.ini*(5) is not set. +*HOME* + Used to determine the location of the configuration file, see + *foot.ini*(5) for details. + *XDG\_CONFIG\_HOME* Used to determine the location of the configuration file, see *foot.ini*(5) for details. diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 8aa63d2f..9c7ccf29 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -15,7 +15,7 @@ foot will search for a configuration file in the following locations, in this order: - *XDG_CONFIG_HOME/foot/foot.ini* (defaulting to - *~/.config/foot/foot.ini* if unset) + *$HOME/.config/foot/foot.ini* if unset) - *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to */etc/xdg/foot/foot.ini* if unset) |
