HOW TO: Disable OS X Dashboard

I rarely use Dashboard in OS X, so I hunted around to find out how to turn the Dashboard off in OSX:

To turn Dashboard off:
# defaults write com.apple.dashboard mcx-disabled -boolean YES

To turn Dashboard on:
# defaults write com.apple.dashboard mcx-disabled -boolean NO

You have to restart the Dock after making either change for it to take effect:
# killall Dock

Share on FacebookTweet about this on TwitterShare on LinkedInEmail this to someone