all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: 41174@debbugs.gnu.org
Subject: bug#41174: Epiphany can't find fonts
Date: Mon, 18 May 2020 02:27:08 +0200	[thread overview]
Message-ID: <fb82400bf2d20e3428981183516d36664a87163b.camel@student.tugraz.at> (raw)
In-Reply-To: <handler.41174.B.158911578424933.ack@debbugs.gnu.org>

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.






  parent reply	other threads:[~2020-05-18  0:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-10 13:02 bug#41174: Epiphany can't find fonts Leo Prikler
     [not found] ` <handler.41174.B.158911578424933.ack@debbugs.gnu.org>
2020-05-18  0:27   ` Leo Prikler [this message]
2020-05-26 18:13 ` bug#41174: [PATCH] gnu: webkitgtk: Add patch to share all fonts Leo Prikler
2020-05-26 19:47   ` Jack Hill
2020-05-26 21:56     ` Leo Prikler
2020-05-27  1:18       ` Jack Hill
2020-08-16 20:19   ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb82400bf2d20e3428981183516d36664a87163b.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=41174@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.