- app_server's FontManager also needs to watch ~/config/non-packaged/fonts.
This commit is contained in:
Rene Gollent 2013-10-06 11:01:18 -04:00
parent 897d5af7ff
commit 1db2f863d8
1 changed files with 6 additions and 4 deletions

View File

@ -1145,10 +1145,12 @@ FontManager::AttachUser(uid_t userID)
// TODO: actually, find_directory() cannot know which user ID we want here
// TODO: avoids user fonts in safe mode
BPath path;
if (find_directory(B_USER_FONTS_DIRECTORY, &path, true) != B_OK)
return;
_AddPath(path.Path());
if (find_directory(B_USER_FONTS_DIRECTORY, &path, true) == B_OK)
_AddPath(path.Path());
if (find_directory(B_USER_NONPACKAGED_FONTS_DIRECTORY, &path, true)
== B_OK) {
_AddPath(path.Path());
}
#endif
}