Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate settings #164

Open
soporteib opened this issue Jan 8, 2024 · 3 comments
Open

Migrate settings #164

soporteib opened this issue Jan 8, 2024 · 3 comments

Comments

@soporteib
Copy link

Hello,
I want to apply the settings of this plugin to multiple users and profiles. In which file are the settings applied?
I've looked at prefs.js and userChrome without success.
Thanks you, best regards.

@wshanks
Copy link
Owner

wshanks commented Jan 8, 2024

The plugin uses browser.storage.local.set to save the settings here:

await browser.storage.local.set(settings);

I think this writes the settings into a sqlite database in the profile directory, but I have not investigated how it is stored exactly.

@morat523035
Copy link

Here is how to show the storage contents in a Console tab.

Menu Bar > Tools > Developer Tools > Debug Addons > tbkeys > Inspect

browser.storage.local.get(null).then(function (aResult) {
  console.log(aResult);
});

WebExtensions browser.storage.local
http://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/storage/local

Here is the path of the sqlite database.

<Profile Folder>\storage\default\moz-extension+++<Internal UUID>^userContextId=4294967295\idb\3647222921wleabcEoxlt-eengsairo.sqlite

The internal UUID is a different value for each installation of the addon.

The storage contents are encoded using a special Mozilla format in the sqlite database.

More info
http://stackoverflow.com/questions/54920939

@soporteib
Copy link
Author

Hello,
Is there a way to clone settings between users and PCs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants