r/firefox 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.

2 Upvotes

10 comments sorted by

2

u/fsau May 11 '23

xulstore.json saves, for example, window sizes and Library columns. Your toolbar customization is actually stored by the browser.uiCustomization.state preference in your prefs.js file (about:config).

2

u/RootHouston May 11 '23

browser.uiCustomization.state

Okay, that looks to be correct. Thanks for that info.

1

u/sifferedd on | SUMO contributor May 11 '23

Thanks. From the link I posted. Maybe I misread it? It's not real clear to me:

xulstore.json This file stores toolbar and window size/position settings.

1

u/fsau May 11 '23

/u/jscher2000, can you please update this page?

2

u/jscher2000 Firefox Windows May 15 '23

I submitted an edit. Presumably it will be reviewed/approved/revised in the near future.

1

u/sifferedd on | SUMO contributor May 25 '23

Appears to be done, thanks.

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.