Fix #10045.
- app_server's FontManager also needs to watch ~/config/non-packaged/fonts.
This commit is contained in:
@@ -1145,10 +1145,12 @@ FontManager::AttachUser(uid_t userID)
|
|||||||
// TODO: actually, find_directory() cannot know which user ID we want here
|
// TODO: actually, find_directory() cannot know which user ID we want here
|
||||||
// TODO: avoids user fonts in safe mode
|
// TODO: avoids user fonts in safe mode
|
||||||
BPath path;
|
BPath path;
|
||||||
if (find_directory(B_USER_FONTS_DIRECTORY, &path, true) != B_OK)
|
if (find_directory(B_USER_FONTS_DIRECTORY, &path, true) == B_OK)
|
||||||
return;
|
_AddPath(path.Path());
|
||||||
|
if (find_directory(B_USER_NONPACKAGED_FONTS_DIRECTORY, &path, true)
|
||||||
_AddPath(path.Path());
|
== B_OK) {
|
||||||
|
_AddPath(path.Path());
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user