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

Pekka Paalanen ppaalanen at gmail.com
Wed Sep 5 23:36:38 PDT 2012


On Wed, 05 Sep 2012 12:44:27 -0700
Bill Spitzak <spitzak at gmail.com> wrote:

> Are you saying that if I make $PREFIX/etc/X11/xorg.conf.d/foo and put my 
> config in there, xwayland will read it? And it will then ignore the 
> xorg.conf?

You need to read 'man xorg.conf'.

> I still do not see this solving the real problem however. The normal 
> Xorg will follow the exact same rules, so if xwayland is compiled 
> without $PREFIX then it is impossible to use this to make xwayland and 
> normal Xorg see different config files. Even with $PREFIX this does not 
> allow xwayland to see "no" config file, as the missing file will make it 
> still fall back to searching everywhere and it will find the xorg.conf 
> file that I do not want it to see.

What I said was not a suggested solution but pointing out a flaw in your
plan. I never mentioned $prefix.

> So I still feel that my solution of changing the conf file name is the 
> only thing that will work. We can put it in xorg.conf.d if that makes 
> some kind of sense (though I completely do not understand the purpose of 
> this).

You are missing my point. I still say:

> Pekka Paalanen wrote:
> > 
> > The whole point of xorg.conf.d is that files can have any names, and
> > they all will be read in in alphabetical order. Maybe they need a .conf
> > suffix or not, don't know. If you are changing names, you would have to
> > change the name of the directory.

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.

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.


Thanks,
pq


More information about the wayland-devel mailing list