[PATCH xinit] Enable support for an xinitrc.d directory

Julien Cristau jcristau at debian.org
Thu Apr 15 11:56:15 PDT 2010


Hi Jeremy,

On Thu, Apr 15, 2010 at 11:44:15 -0700, Jeremy Huddleston wrote:

> This was already done on darwin and Gentoo.  Now others can benefit.
> 
> Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
> ---
>  xinitrc.cpp |    6 +-----
>  1 files changed, 1 insertions(+), 5 deletions(-)
> 
> diff --git /xinitrc.cpp /xinitrc.cpp
> new file mode 100644
> index 379b1f3..7e582b0 100644
> --- /xinitrc.cpp
> +++ /xinitrc.cpp
> @@ -84,17 +84,13 @@ fi
>  XCOMM This is the fallback case if nothing else is executed above
>  #endif /* !defined(__SCO__)  && !defined(__UNIXWARE__) */
>  
> -#ifdef __APPLE__
> -
>  if [ -d XINITDIR/xinitrc.d ] ; then
> -	for f in XINITDIR/xinitrc.dXSLASHGLOB.sh ; do
> +	for f in XINITDIR/xinitrc.dXSLASHGLOB ; do
>  		[ -x "$f" ] && . "$f"
>  	done
>  	unset f
>  fi
>  
I think I'd keep the .sh suffix.  That would avoid picking up emacs foo~
files, or similar.  Seems sane otherwise.

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100415/328ae91e/attachment.pgp>


More information about the xorg-devel mailing list