]> git.mdlowis.com Git - proto/labwc.git/commit
session: process environment.d and allow empty variables
authorAndrew J. Hesford <ajh@sideband.org>
Sat, 9 Mar 2024 17:03:30 +0000 (12:03 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 11 Mar 2024 20:01:14 +0000 (20:01 +0000)
commite837445114b1723d877fc3ccc31b43bd61113891
tree87055a7233ba9be7f121d4ef3bd1ac13227a1434
parent52cb6431897baf1228ac9f7cee4e7c47a067a4fd
session: process environment.d and allow empty variables

1. All '*.env' files in an 'environment.d' directory alongside each
   potential 'environment' file will be parsed and added to the
   environment.

2. For the purposes of configuration merging, an environment definition
   exists at one level if either the 'environment' file is defined or
   its corresponding 'environment.d' contains any valid '*.env' file.

3. Variable declarations of the form "VARIABLE=", with no following
   value, will be written to the environment as empty strings.
docs/labwc-config.5.scd
include/common/string-helpers.h
src/common/string-helpers.c
src/config/session.c