<br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 6:05 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I realize now that this patch will only fix local (ie $PREFIX) installs of xwayland, and that something else needs to be done so that real system installs of wayland will work.<br>
<br>
The problem is if an /etc/X11/xorg.conf file exists, Xorg --wayland attempts to read it. If the text in the file causes the wayland backend to not work then it exits. This file may very well exist because the same machine is being used to run a legacy X server as well as wayland.<br>
<br>
I now think the best solution is to make Xorg --wayland use a different configuration file, perhaps /etc/X11/wayland.conf. This is especially true because I believe a non-existent config file will often work and this is the easiest way to indicate that when an xorg.conf file exists. <br>
</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Would love to have some feedback:<br>
<br>
1. Is this really a bug or am I missing something obvious?<br>
<br>
2. Is the idea of a different conf file the right one?</blockquote><div><br>Yes, this does sound like a possible solution.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is my proposed name the right one?<br></blockquote><div><br>I'd vote for xwayland.conf<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
3. If so is the best way to have weston add a --config switch when running Xorg, or modify the source code for Xorg?<br></blockquote><div><br>Since there is a runtime check in for wayland in xserver already we can probably just have it check for this file name and keep the path ordering the same.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
4. Is rearranging the search path (ie this patch) in Xorg to look in $PREFIX first a good idea anyway? </blockquote><div><br>I don't think modifying the search paths would be necessary at all if the configuration file name is unique.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I and others on this list certainly expected it to work this way and it took some time before I figured out it was literally doing things differently than any other Linux software.<br>
</blockquote></div><br>I'm not sure exactly what you mean by this. Software is software, it may not always behave the way you expect.<br>