mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
xfree86: Set a saner search path for xorg.conf.d
There's no reason to carry all the oddities from xorg.conf like appended
hostname to the search path for xorg.conf.d. This changes it to something
very simple:
/etc/X11/<cmdline>
$sysconfdir/X11/<cmdline>
/etc/X11/xorg.conf.d
$sysconfdir/X11/xorg.conf.d
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit a1bae63dc6)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a4516965de
commit
0c4a358eae
3 changed files with 9 additions and 30 deletions
|
|
@ -34,6 +34,7 @@ MANDEFS = \
|
|||
-D__adminmansuffix__=$(ADMIN_MAN_SUFFIX) \
|
||||
-D__mandir__=$(mandir) \
|
||||
-D__projectroot__=$(prefix) \
|
||||
-D__sysconfdir__=$(sysconfdir) \
|
||||
-D__datadir__=$(datadir) \
|
||||
-D__xconfigfile__=$(__XCONFIGFILE__) \
|
||||
-D__xconfigdir__=$(__XCONFIGDIR__) \
|
||||
|
|
|
|||
|
|
@ -97,20 +97,12 @@ extern DeviceAssocRec mouse_assoc;
|
|||
#endif
|
||||
#ifndef ROOT_CONFIGDIRPATH
|
||||
#define ROOT_CONFIGDIRPATH "%A," "%R," \
|
||||
"/etc/X11/%R," "%P/etc/X11/%R," \
|
||||
"/etc/X11/%X-%M," "/etc/X11/%X," "/etc/%X," \
|
||||
"%P/etc/X11/%X.%H," "%P/etc/X11/%X-%M," \
|
||||
"%P/etc/X11/%X," \
|
||||
"%P/lib/X11/%X.%H," "%P/lib/X11/%X-%M," \
|
||||
"%P/lib/X11/%X"
|
||||
"/etc/X11/%R," "%C/X11/%R," \
|
||||
"/etc/X11/%X," "%C/X11/%X"
|
||||
#endif
|
||||
#ifndef USER_CONFIGDIRPATH
|
||||
#define USER_CONFIGDIRPATH "/etc/X11/%S," "%P/etc/X11/%S," \
|
||||
"/etc/X11/%X-%M," "/etc/X11/%X," "/etc/%X," \
|
||||
"%P/etc/X11/%X.%H," "%P/etc/X11/%X-%M," \
|
||||
"%P/etc/X11/%X," \
|
||||
"%P/lib/X11/%X.%H," "%P/lib/X11/%X-%M," \
|
||||
"%P/lib/X11/%X"
|
||||
#define USER_CONFIGDIRPATH "/etc/X11/%R," "%C/X11/%R," \
|
||||
"/etc/X11/%X," "%C/X11/%X"
|
||||
#endif
|
||||
#ifndef PROJECTROOT
|
||||
#define PROJECTROOT "/usr/X11R6"
|
||||
|
|
|
|||
|
|
@ -107,16 +107,9 @@ directories when the server is started as a normal user:
|
|||
.RS 4
|
||||
.nf
|
||||
.IR /etc/X11/ <cmdline>
|
||||
.IR __projectroot__/etc/X11/ <cmdline>
|
||||
.I /etc/X11/__xconfigdir__\-4
|
||||
.IR __sysconfdir__/X11/ <cmdline>
|
||||
.I /etc/X11/__xconfigdir__
|
||||
.I /etc/__xconfigdir__
|
||||
.IR __projectroot__/etc/X11/__xconfigdir__. <hostname>
|
||||
.I __projectroot__/etc/X11/__xconfigdir__\-4
|
||||
.I __projectroot__/etc/X11/__xconfigdir__
|
||||
.IR __projectroot__/lib/X11/__xconfigdir__. <hostname>
|
||||
.I __projectroot__/lib/X11/__xconfigdir__\-4
|
||||
.I __projectroot__/lib/X11/__xconfigdir__
|
||||
.I __sysconfdir__/X11/__xconfigdir__
|
||||
.fi
|
||||
.RE
|
||||
.PP
|
||||
|
|
@ -133,16 +126,9 @@ config directory search locations are as follows:
|
|||
.nf
|
||||
<cmdline>
|
||||
.IR /etc/X11/ <cmdline>
|
||||
.IR __projectroot__/etc/X11/ <cmdline>
|
||||
.I /etc/X11/__xconfigdir__\-4
|
||||
.IR __sysconfdir__/X11/ <cmdline>
|
||||
.I /etc/X11/__xconfigdir__
|
||||
.I /etc/__xconfigdir__
|
||||
.IR __projectroot__/etc/X11/__xconfigdir__. <hostname>
|
||||
.I __projectroot__/etc/X11/__xconfigdir__\-4
|
||||
.I __projectroot__/etc/X11/__xconfigdir__
|
||||
.IR __projectroot__/lib/X11/__xconfigdir__. <hostname>
|
||||
.I __projectroot__/lib/X11/__xconfigdir__\-4
|
||||
.I __projectroot__/lib/X11/__xconfigdir__
|
||||
.I __sysconfdir__/X11/__xconfigdir__
|
||||
.fi
|
||||
.RE
|
||||
.PP
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue