Pass config file from compositor to everything
We have the Weston command line option '--no-config' which is meant to prevent loading weston.ini at all. It works for Weston itself, but it does not work for any clients that also want to read weston.ini. To fix that, introduce a new environment variable WESTON_CONFIG_FILE. Weston will set it to the absolute path of the config file it loads. Clients will load the config file pointed to by WESTON_CONFIG_FILE. If the environment variable is set but empty, no config file will be loaded. If the variable is unset, things fall back to the default "weston.ini". Note, that Weston will only set WESTON_CONFIG_FILE, it never reads it. The ability to specify a custom config file to load will be another patch. All programs that loaded "weston.ini" are modified to honour WESTON_CONFIG_FILE. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
@@ -255,6 +255,15 @@ This allows launching Weston as a nested server.
|
||||
For Wayland clients, holds the file descriptor of an open local socket
|
||||
to a Wayland server.
|
||||
.TP
|
||||
.B WESTON_CONFIG_FILE
|
||||
Weston sets this variable to the absolute path of the configuration file
|
||||
it loads, or to the empty string if no file is used. Programs that use
|
||||
.I weston.ini
|
||||
will read the file specified by this variable instead, or do not read any
|
||||
file if it is empty. Unset variable causes falling back to the default
|
||||
name
|
||||
.IR weston.ini .
|
||||
.TP
|
||||
.B XCURSOR_PATH
|
||||
Set the list of paths to look for cursors in. It changes both
|
||||
libwayland-cursor and libXcursor, so it affects both Wayland and X11 based
|
||||
|
||||
Reference in New Issue
Block a user