From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Santana, Divan" Subject: Re: getting applications from Nix to have access to fonts Date: Mon, 29 Apr 2019 08:46:04 +0000 Message-ID: <87sgu1dws5.fsf@fnb.co.za> References: <87sh3b5ei7.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL1xe-0006De-K8 for help-guix@gnu.org; Mon, 29 Apr 2019 04:48:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL1xa-0002pi-O9 for help-guix@gnu.org; Mon, 29 Apr 2019 04:48:30 -0400 Received: from esa13.hc858-6.c3s2.iphmx.com ([216.71.159.51]:39988) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hL1xZ-0002XN-Oy for help-guix@gnu.org; Mon, 29 Apr 2019 04:48:26 -0400 In-Reply-To: <87sh3b5ei7.fsf@jnanam.net> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: "help-guix@gnu.org" Benjamin Slade writes: > I'm having trouble getting external applications, specifically things > installed via Nix, to have access to fonts, which often is the > difference between them working or not working. > > For instance, I installed Gargoyle (the text adventure/interactive > fiction interpreter - http://ccxvii.net/gargoyle/ ) from Nix. If I set > gtk2 to use something other than 'sans' as the default font, when I try > to launch Gargoyle, it hangs, with the terminal output `Fontconfig > error: Cannot load default config file`. I have similar issues with > other pieces of software; those which don't hang, usually just have > access to whatever fonts they're actually packaged with, and not any of > the fonts on my system (including fonts installed via Nix itself). > > In #guixsd, pkill9 recommended adding `~/.local/bin` to PATH in > ~/.profile, and creating a wrapper like this: > > <----------------#+BEGIN_SRC bash------------> > #!/bin/sh > # Wrapper to run Gargoyle built and packaged by Nix > > MESA_LIB=3D$(dirname $(realpath /run/current-system/profile/lib/libGL.so)= ) #To get webgl working > export LD_LIBRARY_PATH=3D"$MESA_LIB${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" > #export FONTCONFIG_PATH=3D"$(guix build fontconfig)/etc/fonts${FONTCONFIG= _PATH:+:}$FONTCONFIG_PATH" > export FONTCONFIG_PATH=3D"$(guix build fontconfig)/etc/fonts" > > exec -a "$0" "/nix/var/nix/profiles/per-user/$USER/profile/bin/gargoyle" = "$@" > <-----------------#+END_SRC-------------------> > > > However, even doing this, I end up with exactly the same issues. (And > I've tried calling the script directly, e.g. with > `~/.local/bin/gargoyle`, just in case the PATH from .profile wasn't > working correctly.) > > Does anyone have any insight or suggestions on how to resolve this? Did you ever come right with this? Have a work around? = This email is subject to a disclaimer. Visit the FNB website and view the email disclaimer by clicking the "About = FNB + Legal" and "Legal Matters" links. If you are unable to access our website, please contact us to send you a co= py of the email disclaimer.