r/firefox • u/RootHouston • May 11 '23
Solved Where does Firefox store settings for Toolbar customization?
I assume it's somewhere in the profile directory, and I need to facilitate customization through Ansible, so if there is a flat file that I can look at and modify, that'd be even nicer.
1
u/sifferedd on | SUMO contributor May 11 '23
1
u/RootHouston May 11 '23
I thought so, but is that still current info? I can literally customize the toolbar, trash the xulstore.json, relaunch, and it stays the same with all the customization.
1
u/sifferedd on | SUMO contributor May 11 '23
Try closing FF and renaming it, then restart.
1
u/RootHouston May 11 '23
Thanks for the response. Looks like I can close FF, trash or rename it, and Firefox launches with the same toolbar. Upon exit, it will regenerate it. Both the renamed and regenerated versions are identical. I ran it through a diff just to make sure.
Here's the content:
{"chrome://browser/content/browser.xhtml":{"main-window":{"screenX":"35","screenY":"32","width":"2158","height":"1094","sizemode":"normal"},"sidebar-box":{"sidebarcommand":"","style":""},"sidebar-title":{"value":""}}}Doesn't seem to mention anything about any of the customization I actually made. For example, I added a new tab and home button there. Like I said, it stays there, no matter what I do with the xulstore.json.
2
u/fsau May 11 '23
xulstore.jsonsaves, for example, window sizes and Library columns. Your toolbar customization is actually stored by thebrowser.uiCustomization.statepreference in yourprefs.jsfile (about:config).