session: only update activation environment...

...when running DRM backend or by explicit request
This commit is contained in:
Andrew J. Hesford 2024-03-03 15:04:24 -05:00 committed by Consolatis
parent 22fe8cf546
commit c9d08f8218
4 changed files with 57 additions and 9 deletions

View file

@ -14,12 +14,16 @@ parse_bool(const char *str, int default_value)
return true;
} else if (!strcasecmp(str, "on")) {
return true;
} else if (!strcmp(str, "1")) {
return true;
} else if (!strcasecmp(str, "no")) {
return false;
} else if (!strcasecmp(str, "false")) {
return false;
} else if (!strcasecmp(str, "off")) {
return false;
} else if (!strcmp(str, "0")) {
return false;
}
error_not_a_boolean:
wlr_log(WLR_ERROR, "(%s) is not a boolean value", str);