aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-08-21 12:57:04 -0500
committerToby Vincent <tobyv13@gmail.com>2022-08-21 12:57:04 -0500
commit6a8e685b9a448fa6d730a2554ca7376d5c923702 (patch)
treebbb9c25c48a2055f5f35bb1d17993f97f33ccdd4 /sh
parentf8100fc258c3a4a99e81fdf26bbd0283244f95f7 (diff)
fix(sh): increase robustness of input parsing for environment.d output
Diffstat (limited to 'sh')
-rw-r--r--sh/.profile7
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"