Firefox: Difference between revisions

imported>Vater
No edit summary
imported>Artturin
was messed up | Undo revision 4990 by Vater (talk)
Line 3: Line 3:


==Installation==
==Installation==
Nix offers multiple ways to install {{PAGENAME}}.
Nix offers multiple ways to install Firefox.


===Using Nix===
===Using Nix===
{{PAGENAME}} may be normally installed by using the <code>firefox</code> package.
Firefox may be normally installed by using the <code>firefox</code> package.
 
<syntaxhighlight lang="bash">sudo $EDITOR /etc/nixos/configuration.nix</syntaxhighlight>
 
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
  environment.systemPackages = with pkgs; [
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
    firefox
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
  ];
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>


===Using Home Manager===
===Using Home Manager===
{{PAGENAME}} also could be installed by using [[Home Manager]].
Nix's [[Home Manager]] provides a configuration option for managing Firefox profiles. To allow Home Manager to manage Firefox, you should set the following option in your <code>home.nix</code>:
 
<syntaxhighlight lang="bash">$EDITOR ~/.config/nixpkgs/home.nix</syntaxhighlight>
 
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{ pkgs, ... }:
programs.firefox.enable = true;
 
{
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
  programs.firefox.enable = true;
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
}
</syntaxhighlight>
[[Home Manager]] provides a lot of other options to manage {{PAGENAME}}. You can find them below the [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable the Configuration Option ''programs.firefox.enable'' entry in the Home Manager Manual].


[[Home Manager]] provides a configuration option for managing Firefox profiles.
For more information on managing Firefox with Home Manager, please refer to [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable Home Manager's manual's Firefox section ].


==Other Editions==
==Other Editions==
Line 125: Line 94:


For example:  
For example:  
<syntaxhighlight lang="bash">firefox</syntaxhighlight>
 
<syntaxhighlight lang="bash">
<syntaxhighlight>
firefox
1554035168269 Marionette FATAL Error de análisis XML: entidad indefinida
1554035168269 Marionette FATAL Error de análisis XML: entidad indefinida
Ubicación: chrome://browser/content/browser.xul
Ubicación: chrome://browser/content/browser.xul
Línea 2526, columna 13:            <toolbarbutton id="tracking-protection-preferences-button"
Línea 2526, columna 13:            <toolbarbutton id="tracking-protection-preferences-button"
JavaScript error: resource:///modules/aboutpages/AboutPrivateBrowsingHandler.jsm, line 28: TypeError: this.pageListener is undefined
JavaScript error: resource:///modules/aboutpages/AboutPrivateBrowsingHandler.jsm, line 28: TypeError: this.pageListener is undefined
</syntaxhighlight>
</syntaxhighlight>


An easy way to get away from this is to start firefox with the command <code>firefox -safe-mode</code>. Then you can troubleshoot your actual problem or you can call your luck by calling the refresh option (a special button will appear when firefox starts in this mode). This will reset your configuration to a sane state and you will be usually able to start the browser again, but you will lose most of your customization.  
An easy way to get away from this is to start firefox with the <syntaxhighlight>firefox -safe-mode </syntaxhighlight> command. Then you can troubleshoot your actual problem or you can call your luck by calling the refresh option (a special button will appear when firefox starts in this mode). This will reset your configuration to a sane state and you will be usually able to start the browser again, but you will lose most of your customization.  


=== nativeMessagingHosts don't work ===
=== nativeMessagingHosts don't work ===