Chrome

From Gentoo Wiki
(Redirected from Google-chrome)
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Chrome is Google's proprietary (closed source) web browser. Much of the source code is released in parallel as Chromium, however there are binary blobs present in Chrome including a Pepper-based version PPAPI of the Adobe Flash Player.[1]

Installation

Currently there are several versions of Google Chrome available in the main Gentoo repository:

USE flags

Each of the packages listed above contains the following USE flags:

USE flags for www-client/google-chrome The web browser from Google

qt5 Add support for the Qt 5 application and UI framework
qt6 Add support for the Qt 6 application and UI framework
selinux !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur

Accept License

In order to install Google Chrome, the user needs to accept the 'google-chrome' license agreement. A copy of the license can be found at '/var/db/repos/gentoo/licenses/google-chrome'. Read with:

user $less /var/db/repos/gentoo/licenses/google-chrome

And to agree:

root #echo "www-client/google-chrome google-chrome" >> /etc/portage/package.license

Emerge

Select one of the Chrome packages to emerge above. Here the primary stable Chrome package will be installed:

root #emerge --ask www-client/google-chrome

Configuration

Most configuration aspects can be found in the Chromium article. Head over there for configuration information.

Screensharing with Pipewire

Change 'WebRTC PipeWire support' to 'Enabled' in chrome://flags

Using Wayland backend

Change 'Preferred Ozone platform' to 'Wayland' in chrome://flags

Using IM

Chrome needs to be instructed to use gtk4 in order to use IM such as fcitx5.

user $google-chrome-stable --gtk-version=4

Policies

To configure custom policies in Chrome, the policy section in the Chromium article can be used: Chromium#Policies.

However, please note that the directory where Google Chrome looks for policies can be slightly different. According to the documentation the lookup path for installed policies should be: /etc/opt/chrome/policies[2]

No emojis?

Emerge media-fonts/noto-emoji.

See also

References