diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2008-11-29 15:46:34 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2008-11-29 15:46:34 +0100 |
commit | 3c6b3e07e9e25d27fc45c9159bb77b32d6392e9f (patch) | |
tree | 3179e9dc0bbc000b68a557ce89ddff9bca1e1182 /xinitrc.cpp | |
parent | f24144641b2bad8e1aef1ae68502c19633e3d612 (diff) | |
parent | 754efe651165ea7dd034f6b0ce75ef785deab826 (diff) |
Merge commit 'origin/master' into obsd
Conflicts:
configure.ac
xinit.c
xinitrc.cpp
Diffstat (limited to 'xinitrc.cpp')
-rw-r--r-- | xinitrc.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/xinitrc.cpp b/xinitrc.cpp index 6c10073..737bfab 100644 --- a/xinitrc.cpp +++ b/xinitrc.cpp @@ -17,12 +17,20 @@ if [ -f $sysmodmap ]; then XMODMAP $sysmodmap fi -if [ -f $userresources ]; then - XRDB -merge $userresources +if [ -f "$userresources" ]; then +#ifdef __APPLE__ + if [ -x /usr/bin/cpp ] ; then + XRDB -merge "$userresources" + else + XRDB -nocpp -merge "$userresources" + fi +#else + XRDB -merge "$userresources" +#endif fi -if [ -f $usermodmap ]; then - XMODMAP $usermodmap +if [ -f "$usermodmap" ]; then + XMODMAP "$usermodmap" fi XCOMM if we have private ssh key(s), start ssh-agent and add the key(s) |