weston/shared
Pekka Paalanen 6c71aaeec5 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>
2015-03-27 09:38:12 +02:00
..
cairo-util.c cairo-util: fix shadows for small clients 2014-11-19 15:46:30 +02:00
cairo-util.h toytoolkit: rename tile_mask to render_shadow 2014-11-19 15:39:36 +02:00
config-parser.c Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
config-parser.h Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
file-util.c shared: add file_create_dated() helper 2015-02-25 14:47:50 +02:00
file-util.h shared: add file_create_dated() helper 2015-02-25 14:47:50 +02:00
frame.c clients: Maximize window when double touch on title bar 2014-09-22 10:19:44 +03:00
image-loader.c load_image: always print a message on failure if filename is not empty 2014-09-11 13:01:47 +03:00
image-loader.h Add new shared/image-loader.h to separate include dependencies 2013-01-28 16:02:04 -05:00
matrix.c configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS 2013-06-05 01:16:34 -04:00
matrix.h sdk: be C++ friendly 2013-03-28 14:03:58 -04:00
option-parser.c parse_options: fail on more malformed options 2014-09-11 12:36:55 +03:00
os-compatibility.c os: use posix_fallocate in creating sharable buffers 2013-12-02 16:20:27 -08:00
os-compatibility.h Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
platform.h platform: rename create_egl_window to create_egl_surface 2015-03-26 09:54:49 +02:00
zalloc.h Add zalloc(size_t) allocator function 2013-08-08 13:46:13 -07:00