diff options
author | Andy Chun @noneucat <andy@lolc.at> | 2022-07-18 08:46:32 -0700 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-11-20 01:50:38 +0100 |
commit | 2fedbbab9cc09897d1e95dd5272c3100f8a7ed6f (patch) | |
tree | 37d79eeaf6ed4e8dc9029b893c251c6ac52a54e5 /nixos | |
parent | 52b2ac8ae18bbad4374ff0dd5aeee0fdf1aea739 (diff) |
nixos/gnome/at-spi2-core: force GTK_A11Y=none when disabled
GTK 4 applications use accessibility bus directly and will try to connect to it every time a widget is created: https://gitlab.gnome.org/GNOME/gtk/-/issues/4831 This will make GTK 4 apps (e.g. newly ported Nautilus) grind to a halt on systems that do not have AT-SPI service installed. Let’s explicitly disable accessibility support with an environment variable when the AT-SPI service is not enabled to avoid that. Just like we do for ATK-based applications with `NO_AT_BRIDGE`. Fixes: https://github.com/NixOS/nixpkgs/issues/197188
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/desktops/gnome/at-spi2-core.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/desktops/gnome/at-spi2-core.nix b/nixos/modules/services/desktops/gnome/at-spi2-core.nix index 495ea5af9879d..10a2f1f9eca0d 100644 --- a/nixos/modules/services/desktops/gnome/at-spi2-core.nix +++ b/nixos/modules/services/desktops/gnome/at-spi2-core.nix @@ -51,7 +51,10 @@ with lib; }) (mkIf (!config.services.gnome.at-spi2-core.enable) { - environment.variables.NO_AT_BRIDGE = "1"; + environment.variables = { + NO_AT_BRIDGE = "1"; + GTK_A11Y = "none"; + }; }) ]; } |