b3nj5m1n / xdg-ninja

A shell script which checks your $HOME for unwanted files and directories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] xdg-ninja says to move ~/.fonts.conf to $XDG_DATA_HOME instead of $XDG_CONFIG_HOME

KAGEYAM4 opened this issue · comments

#218, says that it should be $XDG_CONFIG_HOME.

Also please look at this ->

xdg-ninja output regarding ~/.fonts directory

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <dir>~/.fonts</dir>
</fontconfig>

~/.fonts.conf

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <dir>~/.fonts</dir>
</fontconfig>

so after moving both, .conf needs to be edited? If yes, then a note indicating that would be nice.

You seem to be right, see https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/8c255fb

Arch wiki also states

Config goes in XDG_CONFIG_HOME/fontconfig/fonts.conf, fonts are stored in XDG_DATA_HOME/fonts/

Regarding editing .conf according to the manpage I guess one should change the directory to
<dir prefix="xdg">fonts</dir>.