git.lucas.co / cce-fonts
font browser

commit14bb98e967e2cdeddc2b76784288fb71384340a8
parent56f3e259d9
authorLucas Galante <[email protected]>
date2026-07-07 09:40
refactor: route hardcoded config/font paths through cce_ui XDG helpers

Replace hardcoded /home/lsgalante paths with cce_ui::config::get_config_path/
cce_config_dir/config_home (and cce_ui::fonts_dir where applicable). Defensive
$HOME-fallback branches left as-is.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 5aab6b3..4107b45 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -528,7 +528,7 @@ impl Application for TypefaceApp {
             text_items: Vec::new(),
             font_system: {
                 let mut fs = FontSystem::new();
-                fs.db_mut().load_fonts_dir("/home/lsgalante/Dropbox/Fonts");
+                fs.db_mut().load_fonts_dir(cce_ui::fonts_dir());
                 fs
             },
             needs_rebuild: true,