[Bug 253277] x11/xtrans: Don't unlink existing UNIX sockets => allows multiple X sessions from sddm

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 2 14:25:22 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253277

--- Comment #5 from Jan Beich <jbeich at FreeBSD.org> ---
+1. Prevents Plasma/Wayland (debug session) destroying X11 socket used by Sway
(dogfood session) at least until
https://invent.kde.org/plasma/kwin/-/commit/9f0f4527029a. Both run Xwayland
with different flags e.g.,

[kernel]
- /sbin/init
|-- login [pam] (login)
| `-- sway
|-- Xwayland :0 -rootless -terminate -core -listenfd 35 -listenfd 37 -wm 40
...
|-- login [pam] (login)
| `-- ck-launch-session dbus-run-session startplasma-wayland
|   `-- dbus-run-session startplasma-wayland
|     |-- dbus-daemon --nofork --print-address 4 --session
|     `-- startplasma-wayland
|       `-- kwin_wayland_wrapper --xwayland
../libexec/startplasma-waylandsession (kwin_wayland_wrappe)
|         `-- kwin_wayland --wayland_fd 4 --xwayland
../libexec/startplasma-waylandsession
|           `-- Xwayland -displayfd 49 -rootless -wm 52 -auth
/var/run/user/1234/xauth_XOBvXm

Notice, Sway doesn't use -displayfd unlike Plasma but simply checks locks.
https://github.com/swaywm/wlroots/blob/0.13.0/xwayland/sockets.c#L130-L186

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list