From 0472116f899cdb5f2c79663b40ed60ab3a180aa2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 3 Jul 2022 11:25:19 +0200 Subject: [PATCH] xsession: explain why XCURSOR_PATH may not be enough for Nix --- dotfiles/xsession | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/xsession b/dotfiles/xsession index 36b7db0..2dc9c25 100755 --- a/dotfiles/xsession +++ b/dotfiles/xsession @@ -17,7 +17,13 @@ export QT_QPA_PLATFORMTHEME=qt5ct # GTK3 apps try to contact org.a11y.Bus. Disable that. export NO_AT_BRIDGE=1 -# Make cursor works from Nix programs +# Make cursor works from Nix programs. This does not solve it for +# everything as libXcursor may be loaded dynamically, see: +# https://github.com/NixOS/nixpkgs/issues/24137 and +# https://github.com/NixOS/nixpkgs/pull/54916. A possible solution +# would be to preload host libXcursor. This seems to work: +# LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libXcursor.so.1. But we don't +# want to do that for all apps. export XCURSOR_PATH=/usr/share/icons # Environment variables