I created https://github.com/snapcore/snapd/pull/4424 to deal with (3), i.e. ensure we do not write a /etc/environment that is too long.
I created https:/ /github. com/snapcore/ snapd/pull/ 4424 to deal with (3), i.e. ensure we do not write a /etc/environment that is too long.