Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
fix: Use Wayland WM class for Chromium --class and --name flags
Match the --class and --name exec flags to the StartupWMClass value
on Wayland sessions, ensuring the dock correctly identifies webapp
windows as separate from regular Chrome windows.
  • Loading branch information
YeeP79 committed Jan 23, 2026
commit b1d6c7cae76b33576c8a4bcf9ecb3bc76c0e1c2a
13 changes: 9 additions & 4 deletions usr/lib/webapp-manager/common.py

@ArqamQazi ArqamQazi Jun 6, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Wayland, Chromium ignores the --class flag and uses its own app_id

There is no need to change class and name flags as those areignored on Wayland.

Original file line number Diff line number Diff line change
Expand Up @@ -460,18 +460,23 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
exec_string += " --no-remote " + url
else:
# Chromium based
if is_wayland_session():
wm_class = get_chromium_wayland_class(url, custom_parameters, isolate_profile)
else:
wm_class = "WebApp-" + codename

if isolate_profile:
profile_path = os.path.join(PROFILES_DIR, codename)
exec_string = (browser.exec_path +
" --app=" + "\"" + url + "\"" +
" --class=WebApp-" + codename +
" --name=WebApp-" + codename +
" --class=" + wm_class +
" --name=" + wm_class +
" --user-data-dir=" + profile_path)
else:
exec_string = (browser.exec_path +
" --app=" + "\"" + url + "\"" +
" --class=WebApp-" + codename +
" --name=WebApp-" + codename)
" --class=" + wm_class +
" --name=" + wm_class)

if privatewindow:
if browser.name == "Microsoft Edge":
Expand Down