[PATCH] Wayland X server uses xwayand.conf instead of xorg.conf

Bill Spitzak spitzak at gmail.com
Thu Sep 6 10:54:58 PDT 2012


Pekka Paalanen wrote:

> Please, carefully read 'man xorg.conf' on how xorg.conf.d works. I
> assume you will want to have xwayland.conf.d replacing xorg.conf.d,
> just like you suggest xwayland.conf replaces xorg.conf.

I get it now. Well they certainly made a mess of something that should 
be simple. I have NEVER seen any use of more than xorg.conf and was 
unaware of that directory.

> It is starting to sound like we should just always pass -configdir and
> -config as arguments to X, and have the directory passed with
> -configdir set in weston's ./configure, instead of changing xorg-server.

I agree, that is exactly what needs to be done. Otherwise xwayland will 
find any existing xorg.conf.d and read that, screwing up in the same 
way. I hope that covers all the possible search locations. We want to 
make sure that it is possible for it to *not* find a config file no 
matter what the xorg setup somebody has on their machine. If users are 
required to create an xwayland.conf file for no reason other than to 
hide an xorg.conf file then I don't think the problem is solved.

However since there is already a -wayland switch and thus the server has 
been patched anyway, I don't see any reason not to have that have a 
side-effect of also doing these two switches as well. In my patch the 
user can still override it with --config anyway so no functionality is lost.



More information about the wayland-devel mailing list