summaryrefslogtreecommitdiff
path: root/xinitrc.cpp
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2008-11-29 15:46:34 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2008-11-29 15:46:34 +0100
commit3c6b3e07e9e25d27fc45c9159bb77b32d6392e9f (patch)
tree3179e9dc0bbc000b68a557ce89ddff9bca1e1182 /xinitrc.cpp
parentf24144641b2bad8e1aef1ae68502c19633e3d612 (diff)
parent754efe651165ea7dd034f6b0ce75ef785deab826 (diff)
Merge commit 'origin/master' into obsd
Conflicts: configure.ac xinit.c xinitrc.cpp
Diffstat (limited to 'xinitrc.cpp')
-rw-r--r--xinitrc.cpp16
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)