doc: Adjust 'xset -fp' command to avoid symlinks.
authorLudovic Courtès <ludo@gnu.org>
Sun, 4 Mar 2018 21:39:43 +0000 (22:39 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 5 Mar 2018 09:41:18 +0000 (10:41 +0100)
Fixes <https://bugs.gnu.org/30655>.
Reported by Marco van Hulten <marco@hulten.org>.

* doc/guix.texi (Application Setup): Adjust 'xset +fp' example.

doc/guix.texi

index 6070387..abec0c0 100644 (file)
@@ -1572,8 +1572,10 @@ full name of a font using XLFD (X Logical Font Description), like this:
 To be able to use such full names for the TrueType fonts installed in
 your Guix profile, you need to extend the font path of the X server:
 
+@c Note: 'xset' does not accept symlinks so the trick below arranges to
+@c get at the real directory.  See <https://bugs.gnu.org/30655>.
 @example
-xset +fp `readlink -f ~/.guix-profile/share/fonts/truetype`
+xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))
 @end example
 
 @cindex @code{xlsfonts}