Bug 442976 - Font Management uses ~/.fonts/ – should use $XDG_DATA_HOME/fonts/ or $HOME/.local/share/fonts/
Summary: Font Management uses ~/.fonts/ – should use $XDG_DATA_HOME/fonts/ or $HOME/....
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fontinst (show other bugs)
Version: unspecified
Platform: Other FreeBSD
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 480556 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-26 12:11 UTC by Graham Perrin
Modified: 2024-08-31 00:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2021-09-26 12:11:05 UTC
Comparable to bug 367650 for kfontview … or, is this a duplicate?

<https://forums.freebsd.org/threads/79999/#post-533304> noted that Font Management uses: 

~/.fonts/

Subsequent discussion in IRC drew attention to: 

<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables>

<https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/8c255fb185d5651b57380b0a9443001e8051b29d#baa0db2f57cfa5d87d2cde0c3f53e02db4e19d46_28_29> describes future removal.
Comment 1 Graham Perrin 2021-09-26 12:19:48 UTC
% file $HOME/.fonts/
/home/grahamperrin/.fonts/: directory
% file $HOME/.local/share/
/home/grahamperrin/.local/share/: directory
% file $HOME/.local/share/fonts
/home/grahamperrin/.local/share/fonts: cannot open `/home/grahamperrin/.local/share/fonts' (No such file or directory)
% pkg provides kcm_fontinst
Name    : plasma5-plasma-workspace-5.22.5
Desc    : Plasma5 Plasma workspace
Repo    : FreeBSD
Filename: usr/local/lib/qt5/plugins/kcm_fontinst.so
% 

----

Operating System: FreeBSD 14.0
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 14.0-CURRENT (64-bit)
Graphics Platform: X11
Memory: 15.9 GiB of RAM
Graphics Processor: AMD TURKS
Comment 2 Shawn W Dunn 2024-02-01 16:02:20 UTC
This bug causes issues with flatpak

https://github.com/flatpak/flatpak/issues/5675
Comment 3 Bug Janitor Service 2024-08-30 15:38:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4663
Comment 4 David Edmundson 2024-08-30 15:58:47 UTC
Git commit dbd2a7961b644602fdda3569e0c659838cf14223 by David Edmundson.
Committed on 30/08/2024 at 15:58.
Pushed by davidedmundson into branch 'master'.

kcms/kfontinst: Use modern path for font installation

Fonts migrated from .fonts to .local/share/fonts many years ago.
The main UI handles fonts in both locations. The installer used only the legacy
location, which can be safely transferred to the new location.

M  +1    -1    kcms/kfontinst/dbus/Folder.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/dbd2a7961b644602fdda3569e0c659838cf14223
Comment 5 Nate Graham 2024-08-30 16:05:22 UTC
*** Bug 480556 has been marked as a duplicate of this bug. ***