therube wrote: ↑2020-02-06, 00:11
As a test, create a new, clean Profile.
Copy the .css into it.
Open that new Profile.
Is the .css working as expected?
Thanks. Perfect. I made the new profile and copied elements of the old over, using preserve and backup options to cp. With a lot of repetitions, restarts, and trial and error, I've gotten to here, which is almost a solution:
I can remove all files from the new profile directory, leaving an empty directory and then copy all files from an older profile over EXCEPT:
prefs.js
Then everything works, but of course I've lost tweaks that were presumably stored in that file. I'll look into starting from the old profile and see if I can find some way to export all the prefs stored there in a human readable list. as a guide to resetting them one by one in the new profile.
What happens when I overwrite the new profile's prefs.js with the old one is interesting. Works fine until I drag a button to the menu bar in the customize dialog. Then apparently PM writes to:
xulstore.json
And the new xulstore.json stops PM from recognizing my userChrome.css. It seems to be a valid json as far as I can tell with an automated checker at
https://jsonformatter.curiousconcept.com/
meaning it produces the same file whether I check the fix option or not. And it doesn't cause any other problem. I can over-write xulstore.json with a good copy and userChrome.css is recognized again - until I drag a button to the menu bar. If I over-write the prefs.js with a backup of the out-of-the-box original, it won't itself restore recognition of userChrome.css, but it will stop PM from breaking it every time I drag a button to the menu bar. So the partial fix is:
- a new OOTB prefs.js
- old copies of everything else except xulstore.json
- an older still copy of xulstore.json from before it broke
I say partial because I'm still haven't figured how to generate a list of prefs from the old profile that I can use to reset a few at a time in the new, until, presumably, I find one that's a problem. Some way more efficient that starting it and jotting down every pref I can find that I MIGHT have changed. If all the GUI prefs are reflected in about:config, that should be easy, but I don't know that they are.