From 9a55de1bde7ad5a9774391d83ed3371a68370502 Mon Sep 17 00:00:00 2001 From: Hideyuki Nagase Date: Mon, 13 Sep 2021 12:08:50 -0700 Subject: [PATCH] enable allow_zap to be configured from .wslgconfig (#43) Co-authored-by: Hideyuki Nagase --- rdprail-shell/shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rdprail-shell/shell.c b/rdprail-shell/shell.c index 3bb5fb7cc..ef11cff31 100644 --- a/rdprail-shell/shell.c +++ b/rdprail-shell/shell.c @@ -670,6 +670,10 @@ shell_configuration(struct desktop_shell *shell) /* default to not allow zap */ weston_config_section_get_bool(section, "allow-zap", &allow_zap, false); + if (!allow_zap) { + s = getenv("WESTON_RDPRAIL_SHELL_ALLOW_ZAP"); + allow_zap = (s && (strcmp(s, "true") == 0)); + } shell->allow_zap = allow_zap; /* set "none" to default to disable optional key-bindings */