After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 310089 - Can ~/.gnome2/share/fonts in gnome-settings-daemon be removed ?
Can ~/.gnome2/share/fonts in gnome-settings-daemon be removed ?
Status: RESOLVED DUPLICATE of bug 559163
Product: gnome-settings-daemon
Classification: Core
Component: general
2.22.x
Other Solaris
: Normal normal
: ---
Assigned To: Rodrigo Moya
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-12 07:23 UTC by Leena Gunda
Modified: 2008-11-03 19:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drop ~/.gnome2/share/fonts (3.41 KB, patch)
2007-02-24 12:11 UTC, Jens Granseuer
none Details | Review
don't create fonts dir on new installations (4.18 KB, patch)
2007-03-22 21:54 UTC, Jens Granseuer
needs-work Details | Review

Description Leena Gunda 2005-07-12 07:23:12 UTC
For Xservers with no XCursor support, gnome-settings-daemon tries to add
~/gnome2/share/cursor-fonts and ~/.gnome2/share/fonts to fontpath using
XSetFontPath (). 

When user tries to change the mouse cursor through the mouse capplet,
~/gnome2/share/cursor-fonts will have a symlink to respective .pcf file in
$DATADIR/gnome/cursor-fonts. But ~/.gnome2/share/fonts is empty.

On solaris X86, with Xorg, the XSetFontPath () is failing because
~/.gnome2/share/fonts is having 0 entries, hence no cursor fonts are found and
the mouse cursor remains unchanged. This happens on XFree86 as well.

If ~/.gnome2/share/fonts is not added to fontpath, things work as expected.

So, 
   - what is the use of ~/.gnome2/share/fonts?
   - who installs cursor font files here (if at all)? 

If there is no use of it, can the peice of code adding ~/.gnome2/share/fonts to
fontpath be removed in g-s-d ?
Comment 1 Leena Gunda 2005-07-13 13:39:19 UTC
Jody: Could you kindly throw some light on this ?
Comment 2 Leena Gunda 2005-08-08 12:11:37 UTC
Jody: ping :)
Comment 3 Rodney Dawes 2005-10-13 16:08:56 UTC
Rodrigo: Can you look at this with the performance stuff for 2.14? Thanks.
Comment 4 Glynn Foster 2006-01-18 00:03:47 UTC
Could be related to #319125?
Comment 5 Jens Granseuer 2007-02-24 12:11:47 UTC
Created attachment 83228 [details] [review]
drop ~/.gnome2/share/fonts

Might be related to bug 397504 as well which means it should be fixed in 2.17.91. However, I don't see anyone actually using .gnome2/share/fonts either, so...

This patch removes the dir and also cleans up the XSetFontDir procedure a bit since we don't need to do that if it already looks the way we want it.
Comment 6 Jens Granseuer 2007-03-22 21:54:15 UTC
Created attachment 85139 [details] [review]
don't create fonts dir on new installations

Here's a new patch that still adds the fonts directory to the path if it exists but doesn't create it on new installations, so we should be fully backwards compatible.
Comment 7 Rodrigo Moya 2007-08-21 11:52:56 UTC
I guess this can be committed, anyone has anything against it? If not, Jens, please commit before the end of this week (for 2.19.91 release)
Comment 8 Jens Granseuer 2007-08-21 16:59:48 UTC
I'm not really convinced it should be applied. As I see it, the main reason for removing that stuff is making the code simpler. All the conditional compatibility stuff in my last patch actually makes everything even more complicated. IMO, we should decide to either keep the directory supported or dump it.
Comment 9 Behdad Esfahbod 2008-11-03 19:15:47 UTC
I have a cleanup patch in bug 559163 that fixes the issues raised in this bug, without making the logic more complicated.  It simplifies it actually.

*** This bug has been marked as a duplicate of 559163 ***