Firefox flatpak web apps group under browser icon on Plasma 6.8 - needs window identity prefixed
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- Python
- Stelle
- 1k
- Fork
- 132
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di linuxmint/webapp-manager
-
Deleting a web app does not delete its profile folderForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
linuxmint/webapp-manager#411 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
linuxmint/webapp-manager#410 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
linuxmint/webapp-manager#409 · 1 commento ·
-
Add Brave Origin supportAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
linuxmint/webapp-manager#402 · 3 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
linuxmint/webapp-manager#401 · 1 commento · 1 reazione ·
Tutte le issue di linuxmint/webapp-manager
Issue simili
-
00 - Bug component: numpy.linalg
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
emeryberger/CSrankings#15700 ·
I maintainer di solito rispondono entro 2 giorni
-
Bug | 工作不正常 Triage | 待检查
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
I maintainer di solito rispondono entro 1 giorno
-
Task select patterns with uppercase letters never matchForse già presa @manobhisriram l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno