> All apps default to Weston window when launched

This is somewhat intended. Graphical toolkits default to using Wayland
over X11. Even if $WAYLAND_DISPLAY is not set, the default `wayland-0`
name will be attempted and if that exists it will be used, regardless of
whether it's a nested compositor or not.

So if weston uses `wayland-0` as a socket name, applications will use it.
Because weston is often used as a non-primary display server, starting from 
version 10 it now uses a different default socket name, `wayland-1`, so that 
this "bug" does not happen anymore: 
https://gitlab.freedesktop.org/wayland/weston/-/commit/ae69381b6eb43ab63992906d1bf29ffd2b4df10d

Ubuntu 22.04 uses weston version 9 so the change would have to be
backported. But I don't know if it is an acceptable change, as it might
break scripts that rely on the default socket name being `wayland-0`.
For this reason I've marked the bug as "Opinion: Doesn't fit with the
project, but can be discussed."

You can address this problem yourself by starting weston with the
`--socket=NAME` parameter, using any NAME you like. When starting
programs from within the weston UI nothing will change; when starting
programs from outside of weston instead, you can set the WAYLAND_DISPLAY
env variable to the same socket name and only that specific program will
display inside weston.

** Also affects: weston (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: xorg (Ubuntu)

** Also affects: weston (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Changed in: weston (Ubuntu)
       Status: New => Fix Released

** Changed in: weston (Ubuntu Jammy)
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2094794

Title:
  All apps default to Weston window when launched

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/weston/+bug/2094794/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to