[Bug Report] Chromium WebApps display generic fallback gear icon in Wayland due to StartupWMClass / app_id mismatch
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
Línea de trabajo
Start by locating the Chromium-based browser launcher generation logic in webapp-manager and tracing how it sets StartupWMClass and installs icon assets. Check how Chromium’s Wayland app_id and desktop icon lookup behave for the supported browsers and profiles. Done means the launcher groups with the running window and displays its chosen icon without creating duplicate app entries; the issue names no source files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
[Bug Report] Chromium WebApps display generic fallback gear icon in Wayland due to StartupWMClass / app_id mismatch
Environment
- OS: Zorin OS 17/18 / Linux Mint (Wayland session)
- Desktop Environment: GNOME Shell / Zorin Desktop
- Application:
webapp-manager(Ice SSB) - Browser: Google Chrome / Chromium (Ozone platform: Wayland)
Steps to Reproduce
- Open WebApp Manager.
- Create a new WebApp using Google Chrome (or Chromium/Brave) pointing to
https://music.youtube.com/. - Select an icon (custom or preset) and save.
- Add the WebApp to Favorites / Dash.
- Launch the WebApp.
Expected Behavior
The running window should group under the pinned WebApp launcher on the dock/taskbar with its designated icon.
Actual Behavior
The running window fails to group with the launcher and appears as a separate taskbar entry displaying a generic gear ("carenagem") placeholder icon.
Root Cause Analysis
-
Wayland
app_idGeneration in Chromium:
When running under Wayland (--ozone-platform=wayland), Chromium ignores the command line switch--class=WebApp-<name><id>.
Instead, Chromium calculates the Wayland surfaceapp_idviashell_integration_linuxusing the pattern:
chrome-<host>__<path>-<profile>(e.g.chrome-music.youtube.com__-Default). -
Launcher Mismatch:
webapp-managerwrites:StartupWMClass=WebApp-MusicGoogle7059Because
StartupWMClassdoes not match the Waylandapp_id, the window manager (GNOME Shell / Mutter) cannot link the surface to the.desktopfile and falls back to a generic window icon.
Proposed Fix
In webapp-manager launcher generation logic for Chromium-based browsers:
- Parse the WebApp URL to compute the expected Wayland
app_id:from urllib.parse import urlparse parsed = urlparse(url) host = parsed.netloc or parsed.path wayland_app_id = f"chrome-{host}__-Default" - Set
StartupWMClassdirectly to the calculatedwayland_app_id(chrome-<host>__-Default) instead ofWebApp-<codename>.- Note on Best Practice: Do not create a secondary symlink like
<wayland_app_id>.desktopin~/.local/share/applications/, as doing so causes desktop environments (e.g. GNOME / Zorin Menu) to index and display duplicate application entries in the app launcher. SettingStartupWMClassalone is 100% sufficient for GNOME Shell / Mutter to map the surface window to the single existing.desktoplauncher.
- Note on Best Practice: Do not create a secondary symlink like
- Ensure the icon asset is copied to
~/.local/share/icons/hicolor/<size>/apps/under thewayland_app_idname so the window manager reliably resolves it.
- Lenguaje dominante
- Python
- Estrellas
- 1k
- Forks
- 132
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de linuxmint/webapp-manager
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
linuxmint/webapp-manager#411 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
linuxmint/webapp-manager#409 · 1 comentario ·
-
Dificultad 4/5 1-2 días Aptitud para principiantes 35/100
linuxmint/webapp-manager#407 · 1 comentario ·
-
Add Brave Origin supportAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
linuxmint/webapp-manager#402 · 3 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
linuxmint/webapp-manager#401 · 1 comentario · 1 reacción ·
Todos los issues de linuxmint/webapp-manager
Issues similares
-
opensubtitlescom: provider rejects pt-PT even though its own converter maps itPosiblemente ocupada @paulo-0308 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Diaoul/subliminal#1405 ·
-
Internal ErrorAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
frappe/frappe_docker#2071 ·
Los mantenedores suelen responder en 1 día
-
🐛 Bug Report: OpenAI Responses: with_raw_response.create() raises when the body can't be parsed, though the uninstrumented call returnsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug python
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
traceloop/openllmetry#4717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-Pocket/PocketFlow#161 ·
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Abiertocomp/desktop P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#157702 ·
Los mantenedores suelen responder en 1 día