Fonts: Difference between revisions
imported>Kernald m Use new name of `fonts.enableDefaultPackages` |
import from old wiki |
||
| Line 127: | Line 127: | ||
$ ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts | $ ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Now you have two options | Now you have two options. | ||
==== Option 1: allow the Flatpaks to access the font folder and <code>/nix/store</code> ==== | |||
By using the Flatpak CLI or the Flatseal Flatpak make the following directory available to all Flatpaks <code>$HOME/.local/share/fonts</code> and <code>$HOME/.icons</code> the appropriate commands for this are: | |||
<syntaxhighlight lang="bash"> | |||
flatpak --user override --filesystem=$HOME/.local/share/fonts:ro | |||
flatpak --user override --filesystem=$HOME/.icons:ro | |||
</syntaxhighlight> | |||
And, because <code>~/.local/share/fonts</code> is linked to <code>/run/current-system/sw/share/X11/fonts</code>, which in turn is linked to content in <code>/nix/store</code>. | |||
You need to grant flatpak applications access to the <code>/nix/store</code> directory, | |||
so that they can load fonts correctly. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
flatpak --user override --filesystem= | flatpak --user override --filesystem=/nix/store:ro | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Option 2: allow the Flatpaks to access the WHOLE filesystem ==== | |||
Allow them access the WHOLE filesystem of yours: <code>All system files</code> in Flatseal or equivalently <code>filesystem=host</code> available to your application, the command for this is: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||