<p dir="ltr">Looks good to me.</p>
<p dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></p>
<div class="gmail_quote">On Apr 30, 2014 3:52 AM, "Andrew Wedgbury" <<a href="mailto:andrew.wedgbury@realvnc.com">andrew.wedgbury@realvnc.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is no need to unset WAYLAND_DISPLAY and WAYLAND_SOCKET when screen-share<br>
launches the fullscreen shell server. This was done originally in case the<br>
launched server decided to use the wayland backend based on the presence of<br>
these. However, we pass a command line argument telling it to use the RDP<br>
backend, which overrides the automatic backend selection based on the<br>
environment.<br>
<br>
Keeping these environment variables allows the launched fullscreen shell server<br>
to know the original server's display name, which it may need in order to show<br>
a configuration UI.<br>
<br>
Signed-off-by: Andrew Wedgbury <<a href="mailto:andrew.wedgbury@realvnc.com">andrew.wedgbury@realvnc.com</a>><br>
---<br>
 src/screen-share.c | 4 ----<br>
 1 file changed, 4 deletions(-)<br>
<br>
diff --git a/src/screen-share.c b/src/screen-share.c<br>
index d3e3f05..6f60b81 100644<br>
--- a/src/screen-share.c<br>
+++ b/src/screen-share.c<br>
@@ -1005,10 +1005,6 @@ weston_output_share(struct weston_output *output,<br>
        }<br>
<br>
        if (pid == 0) {<br>
-               /* We don't want anything circular */<br>
-               unsetenv("WAYLAND_DISPLAY");<br>
-               unsetenv("WAYLAND_SOCKET");<br>
-<br>
                /* do not give our signal mask to the new process */<br>
                sigfillset(&allsigs);<br>
                sigprocmask(SIG_UNBLOCK, &allsigs, NULL);<br>
--<br>
1.9.2<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>