diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-08-21 12:57:04 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-08-21 12:57:04 -0500 |
commit | 6a8e685b9a448fa6d730a2554ca7376d5c923702 (patch) | |
tree | bbb9c25c48a2055f5f35bb1d17993f97f33ccdd4 /sh | |
parent | f8100fc258c3a4a99e81fdf26bbd0283244f95f7 (diff) |
fix(sh): increase robustness of input parsing for environment.d output
Diffstat (limited to 'sh')
-rw-r--r-- | sh/.profile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sh/.profile b/sh/.profile index 5e0a8a0..e26721e 100644 --- a/sh/.profile +++ b/sh/.profile @@ -2,9 +2,10 @@ # shellcheck disable=1091,2046 # environment.d -if [ -x /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator ]; then - export $(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator) -fi +/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator | + while read -r l; do + eval export $((l)) + done # xdg export XDG_CONFIG_HOME="$HOME/.config" |