weston/clients
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
..
calibrator.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
clickdot.c input: Schedule pointer sprite repaint when cursor is set 2014-09-10 14:20:13 +03:00
cliptest.c cliptest: sync calculate_edges with master copy 2014-08-20 11:51:27 +03:00
desktop-shell.c Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
dnd.c dnd: Fix some mouse cursor issues 2014-11-28 13:13:57 +02:00
editor.c editor: Make editor multi-seat aware 2015-01-27 14:40:05 -08:00
eventdemo.c weston-eventdemo --help works 2014-08-19 12:19:16 +03:00
flower.c Clients: Fix memleak issues in various clients of weston 2014-06-24 10:22:43 -07:00
fullscreen.c Clients: Fix memleak issues in various clients of weston 2014-06-24 10:22:43 -07:00
gears.c gears: fix invalid calculation of the first FPS 2014-08-18 15:27:16 +03:00
glmatrix.c Add signedness warning flag and fix fallout 2012-03-30 11:52:39 -04:00
image.c image: don't print redundant error 2014-09-11 13:11:29 +03:00
ivi-shell-user-interface.c Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
keyboard.c keyboard: do not crash when input panel is not available 2014-09-17 13:52:09 +03:00
matrix3.xpm clients: import glmatrix.c and matrix3.xpm 2011-11-18 14:45:04 +02:00
multi-resource.c multi-resource: remove an unnecessary call of wl_display_get_fd() 2014-08-28 13:08:43 +03:00
nested-client.c platform: rename create_egl_window to create_egl_surface 2015-03-26 09:54:49 +02:00
nested.c Made weston-nested --help work 2014-08-19 12:19:16 +03:00
presentation-shm.c presentation-shm: put run mode in window title 2015-02-19 15:00:17 +02:00
resizor.c clients: Remove the window / user parameters from the menu function 2014-05-18 13:54:15 -07:00
scaler.c weston-scaler --help works even if not run inside wayland 2014-08-19 12:21:44 +03:00
screenshot.c screenshooter: Add missing newline and use program_invocation_short_name 2013-08-12 22:15:38 -07:00
simple-damage.c xdg-shell: Bump unstable version 2015-02-27 14:59:43 +02:00
simple-egl.c platform: rename create_egl_window to create_egl_surface 2015-03-26 09:54:49 +02:00
simple-shm.c xdg-shell: Bump unstable version 2015-02-27 14:59:43 +02:00
simple-touch.c simple-touch: Handle multiple seats properly 2014-05-09 12:50:11 -07:00
smoke.c smoke: fix valgrind invalid read errors 2014-11-11 12:59:43 +02:00
stacking.c Clients: Fix memleak issues in various clients of weston 2014-06-24 10:22:43 -07:00
subsurfaces.c platform: rename create_egl_window to create_egl_surface 2015-03-26 09:54:49 +02:00
terminal.c Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
transformed.c Clients: Fix memleak issues in various clients of weston 2014-06-24 10:22:43 -07:00
weston-info.c weston-info: report presentation clock 2014-09-30 11:37:02 +03:00
weston-simple-im.c Replace deprecated xkbcommon symbols with current names 2014-08-20 01:05:13 -07:00
window.c Pass config file from compositor to everything 2015-03-27 09:38:12 +02:00
window.h clients & tests: use eglGetPlatformDisplayEXT when supported 2015-03-20 13:56:38 -07:00
wscreensaver-glue.c screensaver: fix decoding of transparency in xpm files 2012-09-06 21:08:12 -04:00
wscreensaver-glue.h Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.c Made weston-screensaver --help work 2014-08-19 12:19:17 +03:00
wscreensaver.h Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00