(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.
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-appearanc e-properties) . daemon will choose 96 dpi.
If the user hasn't specified a dpi value and xorg's value is < 50 or > 500, gnome-settings-
My steps:
1. Create a new user e-properties -> DPI value is WRONG! desktop/ gnome/font_ rendering/ %gconf. xml -> DPI is NOT set!
2. Check xdpyinfo | grep resolution -> DPI value is RIGHT (and not < 50 or > 500)!
3. Check gnome-appearanc
4. Check ~/.gconf/
In this scenario gnome-settings- daemon should choose xorg's value but does not.