[Bug Report] Chromium WebApps display generic fallback gear icon in Wayland due to StartupWMClass / app_id mismatch
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
[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.
- 主要言語
- Python
- スター
- 1k
- フォーク
- 132
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/webapp-manager のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
linuxmint/webapp-manager#411 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
linuxmint/webapp-manager#409 · コメント 1 件 ·
-
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
linuxmint/webapp-manager#407 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
linuxmint/webapp-manager#402 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
linuxmint/webapp-manager#401 · コメント 1 件 · リアクション 1 件 ·
linuxmint/webapp-manager の issue をすべて見る
似ている issue
-
opensubtitlescom: provider rejects pt-PT even though its own converter maps it対応中かも @paulo-0308 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Diaoul/subliminal#1405 ·
-
Internal Errorオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
frappe/frappe_docker#2071 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Bug Report: OpenAI Responses: with_raw_response.create() raises when the body can't be parsed, though the uninstrumented call returns対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug python
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
traceloop/openllmetry#4717 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
The-Pocket/PocketFlow#161 ·
-
comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#157702 ·
メンテナーはふだん 1 日以内に返信