[doc] install: Config file loading polish

This commit is contained in:
Jonathan Rubenstein 2021-12-25 20:50:26 +02:00 committed by Geoffrey McRae
parent ddc6cb5277
commit 39ea6b0587

View File

@ -289,21 +289,23 @@ Examples:
Configuration Files Configuration Files
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
By default, the application will look for and load the config files in By default, Looking Glass will load config files from
the following locations and order: the following locations:
- /etc/looking-glass-client.ini - /etc/looking-glass-client.ini
- ~/.looking-glass-client.ini - ~/.looking-glass-client.ini
- $XDG_CONFIG_HOME/looking-glass/client.ini (usually ~/.config/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 All config files are loaded in order. Duplicate entries override earlier ones.
than one file will be overridden by the latest loaded one (E.g. an option This means you can set a system-wide configuration in
appearing in ~/.config/looking-glass/client.ini will override the same ``/etc/looking-glass-client.ini``, and override specific options for just
option appearing in ~/.looking-glass-client.ini). When first launched, your user in ``~/.looking-glass-client.ini``, which is overlayed on top of
the Looking-Glass client will create the folder $XDG_CONFIG_HOME/looking-glass/ the system-wide configuration.
if it does not yet exist.
The format of this file is the commonly known INI format, for example:: 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 config files is the commonly known INI format, for example::
[win] [win]
fullScreen=yes fullScreen=yes
@ -311,7 +313,7 @@ The format of this file is the commonly known INI format, for example::
[egl] [egl]
nvGain=1 nvGain=1
Command line arguments will override any options loaded from the config Command line arguments will override any options loaded from config
files. files.
.. _client_overlay_mode: .. _client_overlay_mode: