![为什么 X 服务器配置文件从 /etc/Xorg 移至 /usr/share/Xorg?](https://linux22.com/image/81027/%E4%B8%BA%E4%BB%80%E4%B9%88%20X%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E4%BB%8E%20%2Fetc%2FXorg%20%E7%A7%BB%E8%87%B3%20%2Fusr%2Fshare%2FXorg%EF%BC%9F.png)
过去(从 XFree86 天开始,也许更早)X 服务器配置文件可以在/etc
;下找到。即在/etc/Xorg
.然而,最近的发行版(至少是最近的 Arch 和 Debian)将其置于/usr/share/X11
.这是为什么?主机级配置不属于 吗/etc
?
答案1
从man 5 xorg.conf
,在描述了很多位置之后/etc
:
Finally, configuration files will also be searched for in a directory
reserved for system use. This is to separate configuration files from
the vendor or 3rd party packages from those of local administration.
These files are found in the following directory:
/usr/share/X11/xorg.conf.d
因此,如果您想进行本地调整,请将文件从/usr/share/X11
复制到/etc
.如果您的供应商更新了这些文件,您的本地系统范围配置将不会被覆盖。