From bc7214cd885f08306f2fa833af2b5c72a6cc88c4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 24 May 2022 18:18:15 +0200 Subject: config: use $HOME instead of getpwuid() to retrieve users’s home dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When searching for foot.ini, use $HOME instead of getpwuid() to retrieve the user’s home directory. --- doc/foot.1.scd | 6 +++++- doc/foot.ini.5.scd | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') 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) -- cgit v1.3