Skip to content

Conversation

@RossBrunton
Copy link
Contributor

Description

Closes: #6170. Firefox, by default, will attempt to migrate the profiles.ini file to also include install information. If the user wishes to not have home-manager install Firefox but have it manage their profiles, this causes an error when it tries to write that file.

This can be mitigated by setting MOZ_LEGACY_PROFILES (as the wrapped nix packages do), which disables this migration, so call that out in the documentation.


I considered having MOZ_LEGACY_PROFILES be set automatically when package == null, but updating the environment like that seems kind of rude and makes assumptions as to what the user is likely doing.

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example. (Not required)

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

Closes: nix-community#6170. Firefox, by default, will attempt to migrate the
`profiles.ini` file to also include install information. If the user
wishes to not have home-manager install Firefox but have it manage
their profiles, this causes an error when it tries to write that file.

This can be mitigated by setting `MOZ_LEGACY_PROFILES` (as the wrapped
nix packages do), which disables this migration, so call that out in the
documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: [firefox] Profile Version=2 seems to cause profile loading failures for non-nix Firefox

1 participant