Fonts: Difference between revisions
m improved guidance on where to determine font names for nerdfonts |
Add read permission to /run/current-system/sw/share/X11/fonts:ro to grant access to the link chain with some misc typo fixes. |
||
Line 167: | Line 167: | ||
Error: <syntaxhighlight lang="console"> | Error: <syntaxhighlight lang="console"> | ||
$ flatpak | $ flatpak run com.valvesoftware.Steam | ||
bwrap: Can't make symlink at /home/username/.local/share/fonts: File exists | bwrap: Can't make symlink at /home/username/.local/share/fonts: File exists | ||
</syntaxhighlight></blockquote>Create a symlink in <code>XDG_DATA_HOME/fonts</code> pointing to <code>/run/current-system/sw/share/X11/fonts</code>, e. g. | </syntaxhighlight></blockquote>Create a symlink in <code>XDG_DATA_HOME/fonts</code> pointing to <code>/run/current-system/sw/share/X11/fonts</code>, e. g. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts | mkdir $HOME/.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. | ||
Line 183: | Line 183: | ||
</syntaxhighlight> | </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>. | 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. You may need to reboot for this to fully take effect. | ||
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=/nix/store:ro | flatpak --user override --filesystem=/nix/store:ro | ||
flatpak --user override --filesystem=/run/current-system/sw/share/X11/fonts:ro | |||
</syntaxhighlight> | </syntaxhighlight> | ||