diff mbox series

[bug#71077] home: services: Avoid garbling mouse cursor when used in Trisquel.

Message ID 87o790vktk.fsf@kaka.sjd.se
State New
Headers show
Series [bug#71077] home: services: Avoid garbling mouse cursor when used in Trisquel. | expand

Commit Message

Simon Josefsson May 20, 2024, 10:28 a.m. UTC
Hi!  If you install Trisquel 11 and then install guix with 'sudo apt
install guix' and then do 'guix home reconfigure foo' it will create a
.profile file that sets XCURSOR_PATH which disables system paths.  The
end result is that your mouse cursor is garbled on next login.

This thread seems related, but I think it has to be fixed in guix home
too: https://lists.gnu.org/r/guix-patches/2022-07/msg00096.html

/Simon
diff mbox series

Patch

From 46c63f80ae061b830b8e82903c016461d0bb0f1b Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Mon, 20 May 2024 12:23:39 +0200
Subject: [PATCH] home: services: Avoid garbling mouse cursor when used in
 Trisquel.

* gnu/home/services.scm (environment-variables->setup-environment-script): Add
common system directories when setting XCURSOR_PATH.
---
 gnu/home/services.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/home/services.scm b/gnu/home/services.scm
index b69cd91203..b7413408f0 100644
--- a/gnu/home/services.scm
+++ b/gnu/home/services.scm
@@ -298,7 +298,7 @@  (define (warn-about-duplicate-definitions)
 esac
 case $XCURSOR_PATH in
   *$HOME_ENVIRONMENT/profile/share/icons*) ;;
-  *) export XCURSOR_PATH=$HOME_ENVIRONMENT/profile/share/icons:$XCURSOR_PATH ;;
+  *) export XCURSOR_PATH=$HOME_ENVIRONMENT/profile/share/icons:${XCURSOR_PATH:-/usr/local/share/icons:/usr/share/icons} ;;
 esac
 
 " port)
-- 
2.41.0