Bug 46629

Summary: [bug] should weston set WAYLAND_DISPLAY variable for weston-desktop-shell (based on --socket argument)
Product: Wayland Reporter: nerdopolis1
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description nerdopolis1 2012-02-25 17:19:43 UTC
The problem is right now that when you try to run weston nested under a main weston server, you have to set WAYLAND_DISPLAY for the nested display, and the --socket for the display name for the nested one.  After starting nested weston, weston-desktop-shell in the nested weston display has the WAYLAND_DISPLAY variable for the main display, which makes any programs launched from the nested shells icons appear in the main display instead of the nested one.

My thought is that weston should set WAYLAND_DISPLAY variable to what is specified to --socket to the child process.
Comment 1 Kristian Høgsberg 2012-07-31 18:55:56 UTC
Yup, makes sense.

commit 3df6384c3a6f3f56a16873b63fdbc731f2ccfadb
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Tue Jul 31 14:54:48 2012 -0400

    compositor: Set WAYLAND_DISPLAY if we're given a --socket argument
    
    This lets us run multiple compositors (nested or on different VTs).
    
    https://bugs.freedesktop.org/show_bug.cgi?id=46629

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.