禁用Dashboard

1
2
$ defaults write com.apple.dashboard mcx-disabled -boolean YES
$ killall Dock

启用Dashboard

1
2
$ defaults write com.apple.dashboard mcx-disabled -boolean NO
$ killall Dock