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

How to update #297

Open
aamaanaa opened this issue Sep 8, 2024 · 1 comment
Open

How to update #297

aamaanaa opened this issue Sep 8, 2024 · 1 comment

Comments

@aamaanaa
Copy link

aamaanaa commented Sep 8, 2024

if i have placed all the files from ffprofile into my firefox as a first time, then how do i update it? do i simply overwrite it with the new one ?

@allo-
Copy link
Owner

allo- commented Sep 8, 2024

There is no good way to update. The generator builds an initial profile, but after using Firefox for some time you will have a lot of additional settings changed and just overwriting will reset them to defaults.

Currently the best way is probably to look at the last page in the preview section (or in the downloaded prefs.js) for options that are not set in your profile and add them to prefs.js when Firefox is not running or change them in about:config while Firefox is running.

A good solution would be to be able to merge settings, e.g., by removing the settings from an existing prefs.js file while keeping unrelated ones and then adding the new ones. Another option would be to allow users to select for each setting if they want to keep their version or use the generated value.
pseudo code:

for key in old_settings:
    if key in generated_settings:
        old_settings[key] = generated_settings[key]
return old_settings

In the best case it would be implemented in JavaScript, so the user's existing config is never sent to the server.

The relevant bug for adding this as feature is #25.

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

2 participants