Comment 7 for bug 157398

Revision history for this message
soc (simon-ochsenreither) wrote :

I'm currently looking into http://svn.gnome.org/viewvc/gnome-settings-daemon/branches/gnome-2-24/plugins/xsettings/gsd-xsettings-manager.c?view=markup

(search for "get_dpi_from_gconf_or_x_server (GConfClient *client)")

Judging from the code:

Basically Gnome uses the dpi value xorg reports when these values are within a reasonable range, but only if the user hasn't overidden these values in his gconf (e. g. via gnome-appearance-properties).
If the user hasn't specified a dpi value and xorg's value is < 50 or > 500, gnome-settings-daemon will choose 96 dpi.

My steps:

1. Create a new user
2. Check xdpyinfo | grep resolution -> DPI value is RIGHT (and not < 50 or > 500)!
3. Check gnome-appearance-properties -> DPI value is WRONG!
4. Check ~/.gconf/desktop/gnome/font_rendering/%gconf.xml -> DPI is NOT set!

In this scenario gnome-settings-daemon should choose xorg's value but does not.