Comment 43 for bug 1500282

Revision history for this message
In , Moz-bugzilla-e (moz-bugzilla-e) wrote :

Forgot to mention, here's a workaround which reads the DPI value from an environment variable called "DPI":

=== /usr/lib/firefox/mozilla.cfg
//
defaultPref('layout.css.devPixelsPerPx', ''+(Math.floor(parseFloat(getenv('DPI'))/9.6)/10));
===

and

=== /usr/lib/firefox/defaults/pref/local-settings.js
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
===

Works for Thunderbird too if put in the appropriate directories.