From 413cb5965c657e11256bccd8944119dcb96d19f9 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 8 Oct 2020 11:41:22 +0200 Subject: xsettings: Add Xwayland init script for a11y bus 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. --- plugins/xsettings/00-a11y-bus | 5 +++++ plugins/xsettings/meson.build | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 plugins/xsettings/00-a11y-bus 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') ) -- cgit v1.2.1