XBMC is great, but it kinda randomly crashes a lot. There's nothing worse than turning on your TV and seeing that XBMC isn't running anymore. It's even worse when its your significant other or roomate and you're out of town. #tvops.
So just install this launchd
script to keep XBMC always running. This will launch it on boot, and if it crashes, it'll re-launch it.
mkdir ~/Library/LaunchAgents
curl https://gist.github.com/maddox/5609757/raw/c223338a6a249cbcf83b28921e75a72a38236a29/com.xbmc.keepalive.plist > ~/Library/LaunchAgents/com.xbmc.keepalive.plist
launchctl load -w ~/Library/LaunchAgents/com.xbmc.keepalive.plist
launchctl unload -w ~/Library/LaunchAgents/com.xbmc.keepalive.plist
If XBMC does crash, sometimes the last crashes' reporter window is overlayed on top of all of the windows. This means XBMC might be back, but there's a big dumb dialog window on top of it!!
Fortunately you can disable that. This disables all crash reporting and hence, won't show that dialog if XBMC crashes.
This is a bit of a big change, but we don't really care about crash reporting on our dedicated media center boxes now do we?
sudo chmod 000 /System/Library/CoreServices/Problem\ Reporter.app
sudo chmod 755 /System/Library/CoreServices/Problem\ Reporter.app
Instead of changing the permissions on the Crash Reporter, you could try:
defaults write com.apple.CrashReporter DialogType server