搞砸了通知中心的禁用


1

试图禁用通知中心并从菜单栏中删除它,遗憾的是没有复制整个命令:

launchctl unload -w /System/Library/LaunchAgents

现在我登录时会看到一个完全黑屏,并且

launchctl load -w /System/Library/LaunchAgents

似乎没有帮助。我现在应该怎么办?

重建用户帐户不起作用。

Answers:


1

launchtl手册页中,看起来可能需要-F参数来强制加载。

launchctl load -wF /System/Library/LaunchAgents

我不知道它是否也需要sudo,尽管它可能像LaunchAgents文件夹一样root:wheel rwxr-xr-x

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.