Firefox flatpak web apps group under browser icon on Plasma 6.8 - needs window identity prefixed
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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).
- Linguagem predominante
- Python
- Estrelas
- 1k
- Forks
- 132
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de linuxmint/webapp-manager
-
Deleting a web app does not delete its profile folderTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
linuxmint/webapp-manager#411 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 54/100
linuxmint/webapp-manager#410 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
linuxmint/webapp-manager#409 · 1 comentário ·
-
Add Brave Origin supportAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
linuxmint/webapp-manager#402 · 3 reações ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
linuxmint/webapp-manager#401 · 1 comentário · 1 reação ·
Todas as issues de linuxmint/webapp-manager
Issues semelhantes
-
00 - Bug component: numpy.linalg
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
521xueweihan/HelloGitHub#4543 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
emeryberger/CSrankings#15700 ·
Mantenedores costumam responder em até 2 dias
-
Bug | 工作不正常 Triage | 待检查
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Mantenedores costumam responder em até 1 dia
-
Task select patterns with uppercase letters never matchTalvez já em andamento @manobhisriram assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia