[gnome-settings-daemon/wip/carlosg/xwayland-a11y-root-prop] xsettings: Add Xwayland init script for a11y bus




commit 413cb5965c657e11256bccd8944119dcb96d19f9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Oct 8 11:41:22 2020 +0200

    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(-)
---
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')
 )
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]