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

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253277

--- Comment #5 from Jan Beich <[email protected]> ---
+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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.