Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A at-spi2-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • at-spi2-core
  • Issues
  • #34
Closed
Open
Issue created Apr 15, 2021 by Benjamin Berg@bbergDeveloper

Install script to set X root window property for Xwayland on-demand

In case we have Xwayland on-demand, the X11 root property will not be set. Usually not a big deal, unless we have a process running as root trying to use the X server (e.g. anaconda).

A simple solution should be to install a script that copies the property from DBus over to X11, i.e. something like /etc/xdg/Xwayland-session.d/00-at-spi with

#!/bin/sh

ADDR="$( busctl call --user org.a11y.Bus /org/a11y/bus org.a11y.Bus GetAddress )" || exit 0
ADDR="$( echo $ADDR | sed 's/s "\(.*\)"/\1/' )" || exit 0

exec xprop -root -format AT_SPI_BUS 8s -set AT_SPI_BUS "$ADDR"

This will be executed automatically by gsd-xsettings when Xwayland starts up (and before any client can use the X server).

Edited Apr 16, 2021 by Benjamin Berg
Assignee
Assign to
Time tracking