Command-line Flags
==================
Chromium has an extensive set of command-line flags that change rapidly, so
it's not really practical to include documentation in the package. This page
is kept relatively up to date with that information:
http://peter.sh/experiments/chromium-command-line-switches
Omnibox Search
==============
The omnibox search feature, which sends information entered into the url
entry bar to a selected search provider, can be disabled by setting
"disabled" "disabled" "http://%s" as the three fields and then selecting
"Make default" in the Default search settings dialog:
chrome://settings/searchEngines
Search Engines
==============
The chromium debian package specifically defaults to DuckDuckGo as the
default search engine instead of Google. To change this, go into
chrome://settings/ (or click Settings in the menu), click on "Search engine",
and then select a different search engine for
"Search engine used in the address bar."
Native Wayland Support
======================
By default Chromium will use its X11 backend, even if you're running it in a
Wayland session. Modifying the "Preferred Ozone platform" flag will cause
it to use the Wayland backend instead, but there are sometimes bugs.
First, try running Chromium with the argument --ozone-platform=wayland. If
everything works properly, then type chrome://flags into the address bar,
and change "Preferred Ozone platform" to "Auto". After that, Chromium will
automatically detect a Wayland session and use its native Wayland backend
without requiring any command-line arguments.
Built-in Extensions
===================
The debian package disables most built-in upstream extensions by default
since users have stated concern about enabled features that they have not
specifically requested. This includes things like Google Hangouts, etc.
There are two exceptions, the pdfium extension for viewing pdf files
directly in the browser and the two-factor authentication extension.
If you would like to use one of the upstream built-ins that are currently
disabled, please edit debian/rules to enable it and rebuild the package
from source. See debian bug #886358 for more information.
Widevine Extension
==================
Widevine is a non-free library that cannot be distributed directly by Debian.
If you would like chromium to use it, you need to obtain it from google first
and install it to one of these locations ~/.config/chromium/WidevineCdm/ or
/usr/lib/chromium/WidevineCdm/.
Debugging
=========
To produce meaningful debugging information, please install the chromium-dbgsym
package and launch chromium with the "-g" flag.
$ chromium -g
If you try to install chromium-dbgsym and it fails, you may not have Debian's
dbgsym package repository configured and enabled. To set this up, first as
root add one or more of the following lines to your /etc/apt/sources.list file
(select the one appropriate to the Debian release you are using):
deb http://debug.mirrors.debian.org/debian-debug stable-debug main
deb http://debug.mirrors.debian.org/debian-debug testing-debug main
deb http://debug.mirrors.debian.org/debian-debug unstable-debug main
Then execute these commands (also as root):
# apt update
# apt install chromium-dbgsym
Information about installing dbgsym packages can be found on the Debian wiki:
http://wiki.debian.org/AutomaticDebugPackages
Additional information about debugging chromium can also be found on the Debian
wiki, but it is often out of date:
http://wiki.debian.org/Chromium/Debugging
It's also helpful to run chromium with the '--disable-gpu' option, to
determine whether the issue you're seeing is related to your graphics
hardware.
Running as Root
===============
First of all, this is a very bad idea for a large number of reasons, so please
do not do this unless you really know what you are doing. However, if you want
to accept the risks, you can use the --no-sandbox command line argument to be
able to run chromium as root:
# chromium --no-sandbox