SVN: xinitrc-ng/trunk/xinitdefs

baggins baggins at pld-linux.org
Sun Jan 29 16:32:47 CET 2012


Author: baggins
Date: Sun Jan 29 16:32:47 2012
New Revision: 12470

Modified:
   xinitrc-ng/trunk/xinitdefs
Log:
- safe way to run /etc/X11/xinit/xinitrc.d shell scripts


Modified: xinitrc-ng/trunk/xinitdefs
==============================================================================
--- xinitrc-ng/trunk/xinitdefs	(original)
+++ xinitrc-ng/trunk/xinitdefs	Sun Jan 29 16:32:47 2012
@@ -76,10 +76,8 @@
 unset XKB_IN_USE
 
 # Run all system xinitrc shell scripts.
-for i in /etc/X11/xinit/xinitrc.d/* ; do
-	if [ -x "$i" ]; then
-		. "$i"
-	fi
+for i in /etc/X11/xinit/xinitrc.d/*.sh ; do
+	[ -x "$i" ] && $i
 done
 
 # This must be last line !


More information about the pld-cvs-commit mailing list