Firefox flatpak web apps group under browser icon on Plasma 6.8 - needs window identity prefixed
还没有人认领这个 Issue。
评估
调研方向
Search the Python sources for StartupWMClass and the --class/--name arguments written into the generated .desktop file — that is where the Firefox flatpak app id prefix belongs. Then find the code that reads .desktop files back into the manager's list, which must accept the prefixed StartupWMClass instead of dropping the entry, and pick a place for migrating existing web apps. Done means a Firefox flatpak web app gets its own taskbar icon, still lists in the manager, and old web apps keep working.
由索引模型根据 Issue 内容生成。
描述
Issue
Firefox flatpak web apps created with webapp-manager launch successfully, but their windows are grouped with the browser icon on the task manager (taskbar) rather than their own pinned icon.
Cause
As of Plasma 6.8, KWin's XdgToplevelWindow::handleAppIdChanged() replaces a sandboxed window's application ID with the sandbox application ID if the supplied ID does not start with that sandbox ID.
For example, a Discord web app uses:
--name WebApp-Discord####--class WebApp-Discord####StartupWMClass: WebApp-Discord####
This window identity is outside of the Firefox flatpak's namespace (org.mozilla.firefox), so KWin replaces it with org.mozilla.firefox. The task manager sees this as a regular Firefox window and groups the web app with the Firefox icon instead of the web app's own.
Source: https://github.com/KDE/kwin/blob/Plasma/6.8/src/xdgshellwindow.cpp#L847
Workaround
Prefixing the settings above with Firefox's application ID restores the web app's separate icon/grouping:
--name org.mozilla.firefox.WebApp-Discord####--class org.mozilla.firefox.WebApp-Discord####StartupWMClass: org.mozilla.firefox.WebApp-Discord####
I wasn't able to get this same workaround functioning with Chromium. It appears to have a related upstream issue: https://bugs.kde.org/show_bug.cgi?id=527431
Proposed Fix
For Firefox flatpak web apps, prefix the window identity settings with the application ID.
The manager application will also need to be updated to support the prefixed StartupWMClass, as changing this value currently causes the web app to disappear from the manager.
Consider migrating existing web apps (the .desktop filename and profile directory do not need to be changed).
- 主要语言
- Python
- 星标
- 1k
- 派生
- 132
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
linuxmint/webapp-manager 的其他 Issue
-
Deleting a web app does not delete its profile folder可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 63/100
linuxmint/webapp-manager#411 ·
-
难度 4/5 3-5 天 新手友好度 54/100
linuxmint/webapp-manager#410 ·
-
难度 3/5 1-2 天 新手友好度 48/100
linuxmint/webapp-manager#409 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
linuxmint/webapp-manager#402 · 3 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 52/100
linuxmint/webapp-manager#401 · 1 条评论 · 1 个 reaction ·
查看 linuxmint/webapp-manager 的全部 Issue
相似的 Issue
-
00 - Bug component: numpy.linalg
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
521xueweihan/HelloGitHub#4543 ·
-
难度 2/5 1-3 小时 新手友好度 83/100
emeryberger/CSrankings#15700 ·
维护者通常 2 天内回复
-
Bug | 工作不正常 Triage | 待检查
难度 2/5 1-3 小时 新手友好度 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
维护者通常 1 天内回复
-
Task select patterns with uppercase letters never match可能已有人在做 @manobhisriram 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复