GNU bug report logs -
#78308
[PATCH 0/9] VTE integration support / Shell startup files refactor
Previous Next
Full log
Message #41 received at 78308 <at> debbugs.gnu.org (full text, mbox):
This is useful since our /etc/profile file is otherwise not easily
extendable.
* gnu/system.scm (operating-system-etc-service): Source all '.sh' ending
files found under the /etc/profile.d directory.
Change-Id: Ia6d777195241f69219f00fbd5975e3e6b7c265fb
---
gnu/system.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/system.scm b/gnu/system.scm
index 2beca4b6d08..7db0ff5ba5e 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1122,6 +1122,17 @@ (define* (operating-system-etc-service os)
# Allow GStreamer-based applications to find plugins.
export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"
+for i in /etc/profile.d/*.sh; do
+ if [ -r \"$i\" ]; then
+ if [ \"${-#*i}\" != \"$-\" ]; then
+ . \"$i\"
+ else
+ . \"$i\" >/dev/null
+ fi
+ fi
+done
+unset i
+
if [ -n \"$BASH_VERSION\" -a -f /etc/bashrc ]
then
# Load Bash-specific initialization code.
base-commit: 364694773ef1c61d4c9ec73e24f73642786486ca
--
2.49.0
This bug report was last modified 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.