From db501f689f1acfe7686d23ab1184dc00d41ff557 Mon Sep 17 00:00:00 2001 From: Netboy3 <1472804+netboy3@users.noreply.github.com> Date: Sun, 1 Aug 2021 11:23:18 -0400 Subject: [PATCH] [doc] install: Add $XDG_CONFIG_HOME/looking-glass/client.ini * Add $XDG_CONFIG_HOME/looking-glass/client.ini to the list of config files * Add a paragraph explaining config load and merge order --- doc/install.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/install.rst b/doc/install.rst index 3e985731..c9f27cae 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -273,10 +273,18 @@ Configuration Files ~~~~~~~~~~~~~~~~~~~ By default, the application will look for and load the config files in -the following locations: +the following locations and order: - /etc/looking-glass-client.ini - ~/.looking-glass-client.ini +- $XDG_CONFIG_HOME/looking-glass/client.ini (usually ~/.config/looking-glass/client.ini) + +Config options are merged from all files. Same options appearing in more +than one file will overridden by the latest loaded one (E.g. an option +appearing in ~/.config/looking-glass/client.ini will override the same +option appearing in ~/.looking-glass-client.ini). When first launched, +the Looking-Glass client will create the folder $XDG_CONFIG_HOME/looking-glass/ +if it does not yet exist. The format of this file is the commonly known INI format, for example::