summaryrefslogtreecommitdiffstats
path: root/transmitter-plugin/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'transmitter-plugin/plugin.c')
-rw-r--r--transmitter-plugin/plugin.c5
1 files changed, 5 insertions, 0 deletions
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);