From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30655: xset(1) not accepting symlink to font path Date: Fri, 02 Mar 2018 13:45:41 +0100 Message-ID: <87lgfahci2.fsf@gnu.org> References: <20180228225429.09cd9fd8@jasniac.instanton> <87po4n4u2u.fsf@gnu.org> <20180301221501.5e5f419e@jasniac.instanton> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erk4e-0005JL-25 for bug-guix@gnu.org; Fri, 02 Mar 2018 07:46:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erk4a-0006By-Un for bug-guix@gnu.org; Fri, 02 Mar 2018 07:46:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erk4a-0006Bs-RA for bug-guix@gnu.org; Fri, 02 Mar 2018 07:46:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erk4a-0005l0-K6 for bug-guix@gnu.org; Fri, 02 Mar 2018 07:46:04 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20180301221501.5e5f419e@jasniac.instanton> (Marco van Hulten's message of "Thu, 01 Mar 2018 22:15:01 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marco van Hulten Cc: 30655-done@debbugs.gnu.org Hello, Marco van Hulten skribis: > Ludovic=E2=80=94 > > Je 1 mrt 17:52 skribis Ludovic: >> Marco van Hulten skribis: >>=20 >> > When I follow the manual at >> > https://www.gnu.org/software/guix/manual/html_node/Application-Setup.h= tml#X11-Fonts , >> > I get the message that there is something wrong with the directory I'm >> > trying to add it: >> > >> > >> > gast@graviton ~$ xset +fp ~/.guix-profile/share/fonts/truetype >> > xset: bad font path element (#0), possible causes are: >> > Directory does not exist or has wrong permissions >> > Directory missing fonts.dir >> > Incorrect font server address or syntax >> > gast@graviton ~$ ls -l ~/.guix-profile/share/fonts/truetype/fonts.dir= =20 >> > lrwxrwxrwx 2 root root 84 Jan 1 1970 /home/gast/.guix-profile/share/= fonts/truetype/fonts.dir -> /gnu/store/5kp6hj8mk6pgfl4x3cgabl7z379jyyrl-fon= ts-dir/share/fonts/truetype/fonts.dir >> > gast@graviton ~$ xset +fp /gnu/store/5kp6hj8mk6pgfl4x3cgabl7z379jyyrl-= fonts-dir/share/fonts/truetype >> > >> > >> > The last command exits with code 0. Apparently, xset(1) does not want >> > me to add symlink(2)s that point to valid directories.=20=20 >>=20 >> Would this be a good fix: > > More or less, but it is fonts.dir that points to the right location > though we need the base dir of that, so the patch must be: > > > diff --git a/doc/guix.texi b/doc/guix.texi > index 24db16761..35221ff94 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -1572,7 +1572,7 @@ 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:=20 > @example > -xset +fp ~/.guix-profile/share/fonts/truetype > +xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fo= nts.dir)) > @end example Actually commit 07ec349229 that I just pushed fixes this very line. So I guess we=E2=80=99re done? Thanks, Ludo=E2=80=99.