[PATCH weston 5/6] Pass config file from compositor to everything

Daniel Stone daniel at fooishbar.org
Tue Mar 24 08:23:31 PDT 2015


Hi,

On 24 March 2015 at 13:56, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> 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.

Would be a bit more work, but perhaps more flexible (i.e. can build
in-memory if required) to pass a fd instead of a filename.

Cheers,
Daniel


More information about the wayland-devel mailing list