From 841b26811d657f5072d852ee10466f7f4894c845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sat, 11 Jan 2025 11:33:29 +0800 Subject: [PATCH] gnu: libxcursor: Set a better default XCURSORPATH. * gnu/packages/xorg.scm (libxcursor)[arguments]: Add "--with-cursorpath" to configure-flags. Change-Id: I821cd440cf4e9e6fcc67c9164a38b81e8d793dff --- gnu/packages/xorg.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index a169e06861..64a8408bd8 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -5423,7 +5423,17 @@ (define-public libxcursor "1h62narayrhrkqalrmx7z3s6yppw1acbp5id3skrvrygshnl1sgx")))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--disable-static"))) + (list + #:configure-flags + #~(list "--disable-static" + ;; Set default path, used when XCURSOR_PATH is unset. + (string-append "--with-cursorpath=" + (string-join + '("~/.local/share/icons" "~/.icons" + "~/.guix-profile/share/icons" + "/run/current-system/profile/share/icons" + "/usr/share/icons") + ":"))))) (propagated-inputs (list libx11 libxrender libxfixes xorgproto)) (native-inputs