Firefox: Difference between revisions

imported>Artturin
m add reference and organize
imported>Vater
No edit summary
Line 3: Line 3:


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


===Using Nix===
===Using Nix===
Firefox may be normally installed by using the <code>firefox</code> package.
{{PAGENAME}} 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===
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>:
{{PAGENAME}} also could be installed by using [[Home Manager]].
 
<syntaxhighlight lang="bash">$EDITOR ~/.config/nixpkgs/home.nix</syntaxhighlight>
 
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.firefox.enable = true;
{ pkgs, ... }:
 
{
</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].


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 ].
[[Home Manager]] provides a configuration option for managing Firefox profiles.


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


For example:  
For example:  
 
<syntaxhighlight lang="bash">firefox</syntaxhighlight>
<syntaxhighlight>
<syntaxhighlight lang="bash">
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 <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.  
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.  


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