Permalink
Browse files

xinitrc: Be Mac compatible

A simple workaround for the problem that OS X’s X11 would not start
because of not-found commands in the .xinitrc.
  • Loading branch information...
Tim Weber
Tim Weber committed Oct 26, 2011
1 parent 8d9ea34 commit 4008c1fb371ebf88f901cb95675cafb7fe9259b4
Showing with 5 additions and 0 deletions.
  1. +5 −0 .xinitrc
View
@@ -1,5 +1,10 @@
#!/bin/sh
+# If this is a mac, do nothing at all.
+if [ "$(uname 2>/dev/null)" = 'Darwin' ]; then
+ exec quartz-wm "$@"
+fi
+
# Needed for crappily configured xdms which keep an xconsole open.
# (I'm looking at you, Gentoo!)
which killall >/dev/null 2>&1 && killall xconsole

0 comments on commit 4008c1f

Please sign in to comment.