diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-10-08 11:41:22 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-10-08 11:46:41 +0200 |
commit | 413cb5965c657e11256bccd8944119dcb96d19f9 (patch) | |
tree | 6d89fbe758f816bed34fbcceb87c388f681e061f | |
parent | 2053684523a102b9febb41840b350c1d8f05c93c (diff) | |
download | gnome-settings-daemon-wip/carlosg/xwayland-a11y-root-prop.tar.gz |
xsettings: Add Xwayland init script for a11y buswip/carlosg/xwayland-a11y-root-prop
The a11y bus was typically written on the AT_SPI_BUS root window property.
As there may be older software relying in this property, ensure it is forwarded
when starting Xwayland up.
-rwxr-xr-x | plugins/xsettings/00-a11y-bus | 5 | ||||
-rw-r--r-- | plugins/xsettings/meson.build | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/xsettings/00-a11y-bus b/plugins/xsettings/00-a11y-bus new file mode 100755 index 00000000..de546b79 --- /dev/null +++ b/plugins/xsettings/00-a11y-bus @@ -0,0 +1,5 @@ +#!/bin/sh + +# Forward the a11y bus through the AT_SPI_BUS root window property +a11y_bus=$(gdbus call --session --dest org.a11y.Bus --object-path /org/a11y/bus --method org.a11y.Bus.GetAddress | cut -f 2 -d \' -) +xprop -root -format AT_SPI_BUS 8s -set AT_SPI_BUS "$a11y_bus" diff --git a/plugins/xsettings/meson.build b/plugins/xsettings/meson.build index f91b9637..39f605c3 100644 --- a/plugins/xsettings/meson.build +++ b/plugins/xsettings/meson.build @@ -47,7 +47,10 @@ foreach program: programs endforeach install_data( - files('00-xrdb'), + files( + '00-xrdb', + '00-a11y-bus', + ), install_dir: join_paths(gsd_sysconfdir, 'xdg/Xwayland-session.d') ) |