generate-env: Added both user-environment-generators and system-environment-generators
This commit is contained in:
parent
6197d0a18f
commit
af2db6de57
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
if [ -d /usr/lib/systemd/system-environment-generators ];
|
if [ -d /usr/lib/systemd/user-environment-generators ];
|
||||||
then
|
then
|
||||||
run-parts /usr/lib/systemd/user-environment-generators
|
run-parts /usr/lib/systemd/user-environment-generators
|
||||||
|
elif [ -d /usr/lib/systemd/system-environment-generators ];
|
||||||
|
then
|
||||||
|
run-parts /usr/lib/systemd/system-environment-generators
|
||||||
else
|
else
|
||||||
cat "$HOME"/.config/environment.d/*
|
cat "$HOME"/.config/environment.d/*
|
||||||
fi | grep -v '#' | grep -v '^[[:space:]]*$' | while read -r cur_env; do export "${cur_env?}"; done
|
fi | grep -v '#' | grep -v '^[[:space:]]*$' | while read -r cur_env; do export "${cur_env?}"; done
|
||||||
|
|
Loading…
Reference in a new issue