Chromium: Difference between revisions

Ardenet (talk | contribs)
m Adjust the position of page translation tags
Restructure, remove MV2 section and improve grammar
 
Line 10: Line 10:
== Updating browser policies ==
== Updating browser policies ==


In Chromium the policy settings, which can be accessed by using {{Ic|chrome://policy}}, allow the user to change a lot of settings that dont exist anywhere else such as
In Chromium, policy settings are accessible via {{Ic|chrome://policy}}. They allow the user to change enterprise policies affecting things like


* Creating webapps when the browser is installed
* Creating webapps when the browser is installed
Line 17: Line 17:
* Disable screenshots to be taken with browser extensions
* Disable screenshots to be taken with browser extensions
* Block all downloads from the browser (if you want to do that for some reason)
* Block all downloads from the browser (if you want to do that for some reason)
* and hundreds more settings
* and more!
 
A full list of policies can be found at [https://chromeenterprise.google/policies/ Chrome Enterprise Policy List & Management].


=== Natively Supported Policies ===
=== Natively Supported Policies ===
Line 55: Line 57:
=== Non-natively Supported Policies ===
=== Non-natively Supported Policies ===


As stated beforehand, there are hundreds of policies that are in chromium based browsers and not all of them can be supported directly and so the {{Ic|extraOpts}} option allows for the declaration of all the other policies
There are hundreds of policies in Chromium based browsers, and not all have direct methods to set them. The {{Ic|extraOpts}} option allows for the declaration of all the other policies.


There is no one place to find all the policies and some places you can find a "list" are given below:
There is no single place to find all Chromium policies, but these are some places to look;


* A good number of commonly used policies are present and explained within {{Ic|man configuration.nix}} under {{Ic|programs.chromium}}
* Commonly used policies are present and documented within {{Ic|man configuration.nix}} under {{Ic|programs.chromium}}.
* If you require a more comprehensive list then you can go to {{Ic|chrome://policy}} and click on the checkbox at the top of the page that says "Show policies with no value set", from there you can click on any of the policies to go to the documentation page for that policy to get details on how to use it
* You can navigate to {{Ic|chrome://policy}} and enable "Show policies with no value set" to see all available keys. Clicking a policy name opens its specific definition and usage details.
* If you just want to see the list of all policies supported by chromium then you cant really do that, unfortunately google does not provide documentation on every single policy in the chromium browser base and if you wish to see the list of every single policy then you can do so by going directly to the source code and figuring out how a policy works
* The most up to date policies for Chromium are available in the [https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/pref_names.h source code.]
* To see the most up-to-date file on all policies you can go [https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/pref_names.h here]


== Accelerated video playback ==
== Accelerated video playback ==


Make sure [[Special:MyLanguage/Accelerated Video Playback|Accelerated Video Playback]] is setup on the system properly. Check {{ic|chrome://gpu}} to see if Chromium has enabled hardware acceleration.
Make sure [[Special:MyLanguage/Accelerated Video Playback|Accelerated Video Playback]] is setup on the system properly. Check {{ic|chrome://gpu}} to see if Chromium has enabled hardware acceleration.


If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the cli:
If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the CLI:


</translate>
</translate>
Line 88: Line 87:
<translate>
<translate>


In some cases, {{ic|chrome://gpu}} will show Video Decode as enabled, but Video Acceleration Information as blank, with {{ic|chrome://media-internals}} using FFmpeg Video Decoder (software decoding). If this happens, try to enable the following features:
In some cases, {{ic|chrome://gpu}} will show Video Decode as enabled, but Video Acceleration Information as blank, with {{ic|chrome://media-internals}} using the FFmpeg Video Decoder (software decoding). If this happens, try to enable the following features:


</translate>
</translate>
Line 110: Line 109:
== Enabling native Wayland support ==
== Enabling native Wayland support ==


You can turn on native Wayland support in all chrome and most electron apps by setting an environment variable: <code>environment.sessionVariables.NIXOS_OZONE_WL = "1"</code>.
You can enable native Wayland support in all Chromium based and most Electron apps by setting the `NIXOS_OZONE_WL` environment variable to `1`.
 
== Enabling ManifestV2 support ==
 
To enable manifest v2 support <code>ExtensionManifestV2Availability</code> can be set to <code>2</code>.<ref>https://chromeenterprise.google/policies/#ExtensionManifestV2Availability</ref>
 
</translate>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{
  programs.chromium = {
    extraOpts = {
"ExtensionManifestV2Availability" = 2;
    };
  };
}
</nowiki>}}
<translate>


== Enabling DRM (Widevine support) ==
== Enabling DRM (Widevine support) ==


By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the unfree Widevine blob from nixpkgs:
By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the proprietary Widevine blob from Nixpkgs:


</translate>
</translate>