From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 20:27:15 2020 Received: (at 41174) by debbugs.gnu.org; 18 May 2020 00:27:15 +0000 Received: from localhost ([127.0.0.1]:45155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaTch-0002yx-0D for submit@debbugs.gnu.org; Sun, 17 May 2020 20:27:15 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:13373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaTcf-0002yl-11 for 41174@debbugs.gnu.org; Sun, 17 May 2020 20:27:13 -0400 Received: from nijino.local (194-96-185-81.hdsl.highway.telekom.at [194.96.185.81]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 49QKb161pbz3wWT for <41174@debbugs.gnu.org>; Mon, 18 May 2020 02:27:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1589761629; bh=/4CakGjKSiaexCML8aMuAlq+jZm8vOKp4qdTz6bWEMY=; h=Subject:From:To:Date:In-Reply-To:References; b=gRiDpbuFggDop6quESCeMdSgsQBaa3SAKb9ugBWw0irfHZ/LRGCNp6ePorpD2aIls XoxopkTl2gHkh0FFgk8vCJCBXgPh4ZT09G3obUvV7iw21ltZNIrj4y+dwp96uvgkb2 KFEpTeoL/r45wPTdlQ+QfZqyDPetBziut1Cpq4FQ= Message-ID: Subject: Re: Epiphany can't find fonts From: Leo Prikler To: 41174@debbugs.gnu.org Date: Mon, 18 May 2020 02:27:08 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41174 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Guix, After some discussion in IRC and testing, I found out that adding $GUIX_PROFILE/share/fonts to the webkit sandbox (during initialization via `webkit_web_context_add_path_to_sandbox') resolves this problem. A more general solution would be to iterate over $XDG_DATA_DIRS, append `/fonts' to each item and add the resulting path to the sandbox (if it is a directory). As this is a problem related to the webkit sandbox, it probably affects other packages, that make use of it, as well. Looking even deeper (i.e. diving into the webkitgtk source), it appears that there is indeed a `bindFonts' procedure in the BubblewrapLauncher, but that only considers $XDG_DATA_HOME/fonts, not all of $XDG_DATA_DIRS. As this is the root of the issue, it should probably be fixed there. Regards, Leo Note for those looking for a workaround: Assuming you're installing your fonts to $GUIX_PROFILE/share/fonts, making $XDG_CACHE_HOME/fonts or $HOME/.fonts a symlink to that should work.