Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update chromium/electron section #608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions pages/Getting Started/Master-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,21 @@ require `qt4ct`.

## Force apps to use Wayland

A lot of apps will use Wayland by default. Chromium (and other browsers based on
it or electron) don't. You need to pass
`--enable-features=UseOzonePlatform --ozone-platform=wayland` to them or use
`.conf` files where possible. Chromium-based browsers also should have a toggle
in `chrome://flags`. Search for _"ozone"_ and select Wayland.

For most electron apps, you should put the above in
`~/.config/electron-flags.conf`. VSCode is known to not work with that though.
A lot of apps will use Wayland by default.

Chromium-based browsers and Electron based apps (like VS Code) don't.
You need to start them with the flag `--enable-features=UseOzonePlatform --ozone-platform=wayland`
or use `.conf` files where possible.

For most electron apps, it is sufficient to put `--enable-features=UseOzonePlatform --ozone-platform=wayland`
in `~/.config/electron-flags.conf`.

VS Code is known to not work with that though.
The solution is to create `~/.config/code-flags.conf`, and put the flag there.
This will also work with VS Codium (with `~/.config/codium-flags.conf`).

Chromium-based browsers should have a toggle in `chrome://flags`.
Search for _"ozone"_ and select Wayland.

A few more environment variables for forcing Wayland mode are documented
[here](../../Configuring/Environment-variables).
Expand Down