diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-03-10 10:53:03 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-03-10 10:53:03 -0600 |
commit | 687c38e18cc4fd661afa9d665168ff4a7fa65dcf (patch) | |
tree | d70b76ef1dce20f559c7615920457fabb4832002 /sh/.profile | |
parent | 43b059b54b348597c10fa277d4e06439f8751a02 (diff) |
fix: remove run-parts dependency from .profile
Diffstat (limited to 'sh/.profile')
-rw-r--r-- | sh/.profile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sh/.profile b/sh/.profile index 1820093..819d832 100644 --- a/sh/.profile +++ b/sh/.profile @@ -1,7 +1,14 @@ #!/bin/sh # shellcheck disable=2046 -export $(run-parts /usr/lib/systemd/user-environment-generators | xargs) +# use systemd-environment-d-generator(8) to generate environment, and export those variables +# +# See: https://wiki.archlinux.org/title/Environment_variables#Per_Wayland_session +for gen in /usr/lib/systemd/user-environment-generators/*; do + if [ -e "$gen" ]; then + export $($gen | xargs) + fi +done export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" |