Skip to content
Snippets Groups Projects
Commit bc51ad6a authored by Andrew Wedgbury's avatar Andrew Wedgbury Committed by Kristian Høgsberg
Browse files

screen-share: Don't unset server environment variables


There is no need to unset WAYLAND_DISPLAY and WAYLAND_SOCKET when screen-share
launches the fullscreen shell server. This was done originally in case the
launched server decided to use the wayland backend based on the presence of
these. However, we pass a command line argument telling it to use the RDP
backend, which overrides the automatic backend selection based on the
environment.

Keeping these environment variables allows the launched fullscreen shell server
to know the original server's display name, which it may need in order to show
a configuration UI.

Signed-off-by: default avatarAndrew Wedgbury <andrew.wedgbury@realvnc.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent 8c3c7387
No related branches found
No related tags found
No related merge requests found
......@@ -1005,10 +1005,6 @@ weston_output_share(struct weston_output *output,
}
if (pid == 0) {
/* We don't want anything circular */
unsetenv("WAYLAND_DISPLAY");
unsetenv("WAYLAND_SOCKET");
/* do not give our signal mask to the new process */
sigfillset(&allsigs);
sigprocmask(SIG_UNBLOCK, &allsigs, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment