guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch version-1.4.0 updated: services: kmsconf: Load GNU Freefont.


From: guix-commits
Subject: branch version-1.4.0 updated: services: kmsconf: Load GNU Freefont.
Date: Sun, 18 Dec 2022 07:18:44 -0500

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch version-1.4.0
in repository guix.

The following commit(s) were added to refs/heads/version-1.4.0 by this push:
     new d7d049fdcd services: kmsconf: Load GNU Freefont.
d7d049fdcd is described below

commit d7d049fdcd80e27a42b31766890f589f482a4f23
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Dec 18 13:08:04 2022 +0100

    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'.
---
 gnu/services/base.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 2b1974d77e..565e8d9e98 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -72,6 +72,7 @@
                 #:select (dosfstools))
   #:use-module ((gnu packages file-systems)
                 #:select (bcachefs-tools exfat-utils jfsutils zfs))
+  #:use-module (gnu packages fonts)
   #:use-module (gnu packages terminals)
   #:use-module ((gnu packages wm) #:select (sway))
   #:use-module ((gnu build file-systems)
@@ -2487,7 +2488,15 @@ notably to select, copy, and paste text.  The default 
options use the
         (documentation "kmscon virtual terminal")
         (requirement '(user-processes udev dbus-system))
         (provision (list (symbol-append 'term- (string->symbol 
virtual-terminal))))
-        (start #~(make-forkexec-constructor #$kmscon-command))
+        (start #~(make-forkexec-constructor
+                  #$kmscon-command
+
+                  ;; The installer needs to be able to display glyphs from
+                  ;; various scripts, so give it access to freefont.
+                  ;; TODO: Make this configurable.
+                  #:environment-variables
+                  (list (string-append "XDG_DATA_DIRS="
+                                       #$font-gnu-freefont "/share"))))
         (stop #~(make-kill-destructor)))))
    (description "Start the @command{kmscon} virtual terminal emulator for the
 Linux @dfn{kernel mode setting} (KMS).")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]