From f31d102b1a1f6ef5864916d102ec1ae2dc9d0988 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 30 Nov 2020 17:53:13 +0200 Subject: transmitter-plugin: Attempt to use the compositor config file As the compositor will load the configuration before the plug-in, use the environment variable provided by it to avoid reading any other configuration file. Signed-off-by: Marius Vlad Change-Id: I310bb1d76ef093d89210002fae065b571e9f2287 --- transmitter-plugin/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'transmitter-plugin') diff --git a/transmitter-plugin/plugin.c b/transmitter-plugin/plugin.c index 2fb60b6..f7bbabf 100644 --- a/transmitter-plugin/plugin.c +++ b/transmitter-plugin/plugin.c @@ -899,10 +899,15 @@ load_config(struct weston_config **config, bool no_config, { const char *file = "agl-compositor.ini"; const char *full_path; + char *compositor_env_file = NULL; if (config_file) file = config_file; + compositor_env_file = getenv(WESTON_CONFIG_FILE_ENV_VAR); + if (compositor_env_file) + file = compositor_env_file; + if (!no_config) *config = weston_config_parse(file); -- cgit 1.2.3-korg