Skip to content

Instantly share code, notes, and snippets.

@JohnRTitor
Last active April 3, 2024 18:12
Show Gist options
  • Save JohnRTitor/a39b33a96b51042f841875ef77a56878 to your computer and use it in GitHub Desktop.
Save JohnRTitor/a39b33a96b51042f841875ef77a56878 to your computer and use it in GitHub Desktop.
Chrome Web Apps icons are not properly shown in Wayland

If Plasma Desktop is used with Wayland, using Chrome PWA (web apps) icon's are not properly shown in the task manager. PWAs would show up as additional windows under Chrome main entry in the Task Manager. A solution is to enable the Chrome flag, Preferred Ozone Platform and set it to Auto or Wayland. This will make Chrome run using Wayland completely, instead of relying on XWayland, which introduces bugs like these.

Type in browser address bar in Chrome: chrome://flags/#ozone-platform-hint

On NixOS, system wide Wayland support of Electron and Chromium apps can be enabled by setting the environment var

In bash profile:

export NIXOS_OZONE_WL=1 # for electron and chromium apps to run on wayland
export MOZ_ENABLE_WAYLAND=1 # firefox should always run on wayland

In configuration.nix:

  environment.sessionVariables = {
    NIXOS_OZONE_WL = "1"; # for electron and chromium apps to run on wayland
    MOZ_ENABLE_WAYLAND = "1"; # firefox should always run on wayland
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment