通过终端从上下文菜单中禁用服务
Disable services from context menu by Terminal
我知道我可以通过转至 系统偏好设置 > 键盘 > 快捷方式 禁用上下文菜单项,但我想通过命令行禁用服务。
有谁知道这是否可行?
发现您可以将您的服务添加到 ~/Library/Preferences/pbs.plist
中的文件中
之后你调用:
> launchctl stop com.apple.pbs
> launchctl start com.apple.pbs
我知道我可以通过转至 系统偏好设置 > 键盘 > 快捷方式 禁用上下文菜单项,但我想通过命令行禁用服务。
有谁知道这是否可行?
发现您可以将您的服务添加到 ~/Library/Preferences/pbs.plist
之后你调用:
> launchctl stop com.apple.pbs
> launchctl start com.apple.pbs