From 610fe4979e8a62d0c996f71849dad7dd2e22b3ba Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Thu, 9 Apr 2026 14:37:08 +1000 Subject: [PATCH] Expose Calamares to the AT-SPI registry This allows Orca to work with Calamares, and enables us to use the AT-SPI bus for automated testing. --- mkosi.extra/live/usr/local/bin/calamares | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkosi.extra/live/usr/local/bin/calamares b/mkosi.extra/live/usr/local/bin/calamares index 38b29cb..f2a8318 100755 --- a/mkosi.extra/live/usr/local/bin/calamares +++ b/mkosi.extra/live/usr/local/bin/calamares @@ -1,11 +1,16 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # SPDX-FileCopyrightText: 2023 Harald Sitter +# SPDX-FileCopyrightText: 2026 Thomas Duckworth if [ "$(id -u)" != "0" ]; then exec pkexec /usr/local/bin/calamares "$@" fi +# Find the user's AT-SPI bus and export it here for Calamares to use. +# Unfortunately, Calamares has to run entirely as root, UI and all, so we have to do this. +export AT_SPI_BUS_ADDRESS="$(busctl --machine="$PKEXEC_UID"@.host --user call org.a11y.Bus /org/a11y/bus org.a11y.Bus GetAddress --json=short | jq -r '.data[0]')" + export KDE_FULL_SESSION=TRUE export KDE_SESSION_VERSION=6