Linux --class flag does not work

Description of the issue:
the chromium --class command line flag is not actually changing the reported application class. (this could be an upstream bug in chromium).

This manifests is in dock applications like Cairo-Dock and Dock-to-Dash.
Where setting the WM_CLASS manually via the --class flag doesn’t work,
then all the brave windows (including those run from their own shortcuts) are grouped under one icon, instead of having the applications that are run from their own shortcuts grouped under their own icons.

How can this issue be reproduced?

  1. launch a brave application from command line with --class=“test-class”
  2. I an new command line run “xprop WM_CLASS” and select the window
  3. Note that the class doesn’t change.

Expected result:
The application class should have changed.

Brave Version( check About Brave):
Version 1.23.73 Chromium: 90.0.4430.85 (Official Build) (64-bit)

Additional Information:
Linux Mint 20.1 Cinnamon
Cinnamon 4.8.6
Cairo-dock 3.4.1-3
xorg 1:7.7+19ubuntu14

I’m facing this issue myself on ArcoLinux.

I’ve also tested --class flag on Chromium - it works as expected. On Brave WM_CLASS is not changed.

brave --version
Brave Browser 90.1.24.82

chromium --version
Chromium 90.0.4430.212 Arch Linux

pacman -Qs xorg-server
local/xorg-server 1.20.11-1 (xorg)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.