Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 4008c1fb371ebf88f901cb95675cafb7fe9259b4 1 parent 8d9ea34
Tim Weber authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 .xinitrc
5 .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
Please sign in to comment.
Something went wrong with that request. Please try again.