summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-12-18 13:08:04 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-18 13:08:04 +0100
commitd7d049fdcd80e27a42b31766890f589f482a4f23 (patch)
tree035545e72925aaa413f0a6d8217a099d0a795376 /gnu
parent495c50008be91429ebea3805e161a1e385a2a572 (diff)
services: kmsconf: Load GNU Freefont.
This provides glyphs for additional fonts such as Amharic that were otherwise missing. Fixes <https://issues.guix.gnu.org/60164>. Reported by Wolf <wolf@wolfsden.cz>. * gnu/services/base.scm (kmscon-service-type): In 'start' method, pass #:environment-variables to set 'XDG_DATA_DIRS'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/base.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 2b1974d77e1..565e8d9e98a 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -72,6 +72,7 @@
72 #:select (dosfstools)) 72 #:select (dosfstools))
73 #:use-module ((gnu packages file-systems) 73 #:use-module ((gnu packages file-systems)
74 #:select (bcachefs-tools exfat-utils jfsutils zfs)) 74 #:select (bcachefs-tools exfat-utils jfsutils zfs))
75 #:use-module (gnu packages fonts)
75 #:use-module (gnu packages terminals) 76 #:use-module (gnu packages terminals)
76 #:use-module ((gnu packages wm) #:select (sway)) 77 #:use-module ((gnu packages wm) #:select (sway))
77 #:use-module ((gnu build file-systems) 78 #:use-module ((gnu build file-systems)
@@ -2487,7 +2488,15 @@ notably to select, copy, and paste text. The default options use the
2487 (documentation "kmscon virtual terminal") 2488 (documentation "kmscon virtual terminal")
2488 (requirement '(user-processes udev dbus-system)) 2489 (requirement '(user-processes udev dbus-system))
2489 (provision (list (symbol-append 'term- (string->symbol virtual-terminal)))) 2490 (provision (list (symbol-append 'term- (string->symbol virtual-terminal))))
2490 (start #~(make-forkexec-constructor #$kmscon-command)) 2491 (start #~(make-forkexec-constructor
2492 #$kmscon-command
2493
2494 ;; The installer needs to be able to display glyphs from
2495 ;; various scripts, so give it access to freefont.
2496 ;; TODO: Make this configurable.
2497 #:environment-variables
2498 (list (string-append "XDG_DATA_DIRS="
2499 #$font-gnu-freefont "/share"))))
2491 (stop #~(make-kill-destructor))))) 2500 (stop #~(make-kill-destructor)))))
2492 (description "Start the @command{kmscon} virtual terminal emulator for the 2501 (description "Start the @command{kmscon} virtual terminal emulator for the
2493Linux @dfn{kernel mode setting} (KMS)."))) 2502Linux @dfn{kernel mode setting} (KMS).")))