https://bugs.kde.org/show_bug.cgi?id=522899

            Bug ID: 522899
           Summary: Plasma without XWayland causes X11 programs to hang
    Classification: Plasma
           Product: kwin
      Version First git master
       Reported In:
          Platform: Debian unstable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: xwayland
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
On development Plasma without XWayland, when I run X11 programs (e.g. xterm),
they hang infinitely instead of crashing. This also affects spice-vdagent;
instead of properly starting up, it hangs infinitely without printing any
errors. 


STEPS TO REPRODUCE
1. Make sure XWayland isn't installed. (This is not always possible; see
below.)
2. Open Konsole.
3. Run `strace xterm`.


OBSERVED RESULT
Xterm hangs on the `connect` syscall. Here are the last two lines from strace:

socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path=@"/tmp/.X11-unix/X1"}, 20

`lsfd` reveals that kwin_wayland_wrapper and kwin_wayland are listening on the
@/tmp/.X11-unix/X1 socket.


EXPECTED RESULT
Either XWayland should be a hard dependency for Plasma, or xterm should crash.
The latter could be implemented by not setting $DISPLAY or $XAUTHORITY.
Possibly, it would also be sufficient if KWin didn't listen on the X11 socket.


SOFTWARE/OS VERSIONS
Operating System: Debian Sid
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.27.0
Qt Version: 6.10.2


ADDITIONAL INFORMATION
It is possible that XWayland is already intended to be a hard dependency of
KWin; however, the files in the `distro-dependencies` directory of the
`sysadmin/repo-metadata` repo only list XWayland as a dependency on Fedora and
Arch -- not on other distros. Nonetheless, in Debian's own package system, the
package `kwin-wayland` depends on the package `xwayland`.

Prior discussion on Discuss:
https://discuss.kde.org/t/does-plasma-require-xwayland/48533/11.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to