gpt4 book ai didi

macos - 如何让Apple X11成为默认的X11应用程序?

转载 作者:行者123 更新时间:2023-12-02 06:15:38 24 4
gpt4 key购买 nike

我有 OS X 特立独行者。昨天我安装了 xQuartz,但后来决定让 Apple 的 X11 成为默认的 X11 eninronemnt。我查了xQuartz的网站它说我应该运行以下命令:

(XQuartz.app) launchctl unload -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
(Apple's X11.app) launchctl unload -w /System/Library/LaunchAgents/org.x.startx.plist
(MacPorts' X11.app) launchctl unload -w /Library/LaunchAgents/org.macports.startx.plist

第一个命令运行正确,但最后两个命令告诉我不存在此类文件或目录错误。那么现在我怎样才能将Apple的X11设置为默认值呢?!

最佳答案

From XQuartz's faq:

Uninstall (Snow Leopard or Later)

XQuartz does not replace the system X11 on Snow Leopard, so you can go back to the Apple-provided X11.app rather easily. Just launch X11.app rather than XQuartz.app to get the older server. If you want to make Apple's X11.app the default server (owning the launchd $DISPLAY socket), then you should disable the org.macosforge.xquartz.startx.plist as described in the first question. After logging out and back in, Apple's X11.app will be default. If you still want to remove XQuartz.app from your system, you can do that with these two steps:

launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg

Please file a bug report to let us know why you reverted to the system X11.app, so we can address the problem in a future release.

关于macos - 如何让Apple X11成为默认的X11应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22194362/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com