Summary: | Xwayland startup doesn't include AT-SPI information for Orca to see Xwayland applications | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Neal Gompa <ngompa13> |
Component: | xwayland | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kde, nate |
Priority: | HI | ||
Version: | 6.1.4 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/4bff9354370e3197cc7fe140845f4bf311407e31 | Version Fixed In: | 6.2.0 |
Sentry Crash Report: |
Description
Neal Gompa
2024-09-13 10:29:58 UTC
For context, this works in Fedora Workstation because a similar hack is employed through gnome-session launching this script installed in /etc/xdg/Xwayland-session.d. My Fedora Workstation install has the following in there: ``` ngompa@fedora ~> ls -hal /etc/xdg/Xwayland-session.d/ total 12K drwxr-xr-x. 1 root root 54 Sep 4 20:18 ./ drwxr-xr-x. 1 root root 276 Jan 24 2024 ../ -rwxr-xr-x. 1 root root 169 Mar 16 01:00 00-at-spi* -rwxr-xr-x. 1 root root 219 Mar 16 23:14 00-xrdb* -rwxr-xr-x. 1 root root 38 Aug 14 02:00 10-ibus-x11* ngompa@Belldandy-LenovoX1CE2 ~> ls -hal /etc/xdg/Xwayland-session.d/ total 12K drwxr-xr-x. 1 root root 54 Sep 4 20:18 ./ drwxr-xr-x. 1 root root 276 Jan 24 2024 ../ -rwxr-xr-x. 1 root root 169 Mar 16 01:00 00-at-spi* -rwxr-xr-x. 1 root root 219 Mar 16 23:14 00-xrdb* -rwxr-xr-x. 1 root root 38 Aug 14 02:00 10-ibus-x11* ngompa@fedora ~> cat /etc/xdg/Xwayland-session.d/00-at-spi #!/usr/bin/sh xprop -root -format AT_SPI_BUS 8s -set 'AT_SPI_BUS' "$( busctl call --user org.a11y.Bus /org/a11y/bus org.a11y.Bus GetAddress | sed 's/s "\(.*\)"/\1/' )" ngompa@fedora ~> cat /etc/xdg/Xwayland-session.d/00-xrdb #!/usr/bin/sh userresources=$HOME/.Xresources sysresources=/etc/X11/Xresources # merge in defaults [ -r "$sysresources" ] && xrdb -nocpp -merge "$sysresources" [ -r "$userresources" ] && xrdb -merge "$userresources" ngompa@fedora ~> cat /etc/xdg/Xwayland-session.d/10-ibus-x11 #!/usr/bin/sh /usr/libexec/ibus-x11 & ``` A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6492 Git commit ce8927c93887d63c5b052c1e0f2437e6f3d0b038 by David Edmundson. Committed on 25/09/2024 at 11:26. Pushed by davidedmundson into branch 'master'. xwayland: Run scripts from /etc/xdg/Xwayland-session.d Some hooks need to run on X11 startup. On X11 this is handled by the login manager, for XWayland this is the responsibility of the desktop. Long term, we want Plasma to make XWayland actually on demand and therefore we should use the initfd for these startup scripts before the application connects. M +5 -0 CMakeLists.txt M +2 -0 src/config-kwin.h.cmake M +20 -0 src/xwayland/xwayland.cpp M +2 -0 src/xwayland/xwayland.h https://invent.kde.org/plasma/kwin/-/commit/ce8927c93887d63c5b052c1e0f2437e6f3d0b038 Git commit 4bff9354370e3197cc7fe140845f4bf311407e31 by David Edmundson, on behalf of David Edmundson. Committed on 27/09/2024 at 08:41. Pushed by davidedmundson into branch 'Plasma/6.2'. xwayland: Run scripts from /etc/xdg/Xwayland-session.d Some hooks need to run on X11 startup. On X11 this is handled by the login manager, for XWayland this is the responsibility of the desktop. Long term, we want Plasma to make XWayland actually on demand and therefore we should use the initfd for these startup scripts before the application connects. (cherry picked from commit ce8927c93887d63c5b052c1e0f2437e6f3d0b038) Co-authored-by: David Edmundson <kde@davidedmundson.co.uk> M +5 -0 CMakeLists.txt M +2 -0 src/config-kwin.h.cmake M +20 -0 src/xwayland/xwayland.cpp M +2 -0 src/xwayland/xwayland.h https://invent.kde.org/plasma/kwin/-/commit/4bff9354370e3197cc7fe140845f4bf311407e31 |