mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +00:00

We look for the client config in $XDG_CONFIG_HOME/looking-glass/client.ini. This is done because it's more conventional, and also allows us to add additional configuration files, e.g. for the host. We fallback to $HOME/.config as is standard, and then as a last resort use getpwuid(getuid())->pw_dir. This is also recommended by the getpwuid manpage: > An application that wants to determine its user's home directory should > inspect the value of HOME (rather than the value getpwuid(getuid())->pw_dir) > since this allows the user to modify their notion of "the home directory" > during a login session.