Firefox flatpak web apps group under browser icon on Plasma 6.8 - needs window identity prefixed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Python
- Star
- 1k
- Fork
- 132
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxmint/webapp-manager
-
Deleting a web app does not delete its profile folderCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
linuxmint/webapp-manager#411 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
linuxmint/webapp-manager#410 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
linuxmint/webapp-manager#409 · 1 bình luận ·
-
Add Brave Origin supportĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
linuxmint/webapp-manager#402 · 3 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
linuxmint/webapp-manager#401 · 1 bình luận · 1 reaction ·
Tất cả issue của linuxmint/webapp-manager
Issue tương tự
-
00 - Bug component: numpy.linalg
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
521xueweihan/HelloGitHub#4543 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
emeryberger/CSrankings#15700 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug | 工作不正常 Triage | 待检查
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Task select patterns with uppercase letters never matchCó thể đã có người làm @manobhisriram đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày