[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running IceCat in a container
From: |
Mike Gerwitz |
Subject: |
Re: Running IceCat in a container |
Date: |
Wed, 17 Jan 2018 14:05:28 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
On Tue, Jan 16, 2018 at 21:25:19 -0500, Mike Gerwitz wrote:
> On Tue, Jan 16, 2018 at 17:30:42 +0100, Ludovic Courtès wrote:
>> Perhaps you could define a package that simply runs “fc-cache” with the
>> fonts it has as inputs, and then pass that to ‘guix environment’.
>
> Oh, interesting; I wouldn't have thought of that.
Actually, I could use a little bit of help.
After hours of fontconf research and related stuff (more than I ever
cared to know), I think I'll be able to get away with running fc-cache
as you suggested using a package.
My ultimate goal I think is to still use the user's fonts, but I still
don't know a way to do that, since the /gnu symlinks are unavailable
within the container.[0] It _does_ work if the links are identical
between the host and cointainer---e.g. copying the font files into
~/.local/share/fonts, but that's obviously undesirable.
Unless you happen to know a good way to selectively expose those to a
container.
With that said, I'm having trouble creating a package: it wants a
`source' field, but this is a metapackage of sorts, and I didn't intend
on having any source files; I can generate them using the builder and
trivial-build-system. How can I work around this?
Thanks.
[0]: What seems to be the case---which is probably obvious to anyone who
knows about this stuff---is that X11 on the host (since we're sharing
the socket) needs access to the font in addition to the software running
in the container. I don't think this is the case for traditional X11
fonts (not using fontconf), but I'm not dealing with those.
--
Mike Gerwitz
Free Software Hacker+Activist | GNU Maintainer & Volunteer
GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05
https://mikegerwitz.com
signature.asc
Description: PGP signature
- Running IceCat in a container, Mike Gerwitz, 2018/01/15
- Re: Running IceCat in a container, Ludovic Courtès, 2018/01/16
- Re: Running IceCat in a container, Ludovic Courtès, 2018/01/25
- Re: Running IceCat in a container, Ludovic Courtès, 2018/01/25
- Re: Running IceCat in a container, Mike Gerwitz, 2018/01/26
- Re: Running IceCat in a container, Ludovic Courtès, 2018/01/29
- Re: Running IceCat in a container, Ricardo Wurmus, 2018/01/29
- Running code from packs in containers, Ludovic Courtès, 2018/01/30
- Re: Running IceCat in a container, Ludovic Courtès, 2018/01/29