Hello,
I am using 4.4 sailfish os with the updated sailfish-browser. I am trying to increase fonts displayed by the browser by changing layout.css.devPixelsPerPx in about:config. Unfortunately this works for the current browser session only and gets the default value after restart. The same applies to manual modification of /home/defaultuser/.local/share/org.sailfishos/browser/.mozilla/prefs.js. My next idea is to add proper line to user.js (as pointed out in the comment present in prejs.js) but I cannot locate “profile directory” where user.js should be located.
To sum up - Is it the desired behavior that you cannot make any permanent changes in about:config? - it was possible in 4.3 from what I recall. Do you have any idea where user.js should be placed as a possible workaround?
It’s not about that double quote as far as I can see. That said, to solve / improve this we could write a flag file to $HOME/.local/share/org.sailfishos/browser/.mozilla directory to tell that browser has been started once. Thus, browser start do not need to update “layout.css.devPixelsPerPx” preference. This would allow users to tamper “layout.css.devPixelsPerPx” via about:config and changes would be persistent over browser restarts.