Firefox flatpak web apps group under browser icon on Plasma 6.8 - needs window identity prefixed
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- Python
- Étoiles
- 1k
- Forks
- 132
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de linuxmint/webapp-manager
-
Deleting a web app does not delete its profile folderPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
linuxmint/webapp-manager#411 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 54/100
linuxmint/webapp-manager#410 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
linuxmint/webapp-manager#409 · 1 commentaire ·
-
Add Brave Origin supportOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
linuxmint/webapp-manager#402 · 3 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
linuxmint/webapp-manager#401 · 1 commentaire · 1 réaction ·
Toutes les issues de linuxmint/webapp-manager
Issues similaires
-
00 - Bug component: numpy.linalg
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
emeryberger/CSrankings#15700 ·
Les mainteneurs répondent en général sous 2 jours
-
Bug | 工作不正常 Triage | 待检查
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Les mainteneurs répondent en général sous 1 jour
-
Task select patterns with uppercase letters never matchPeut-être pris @manobhisriram l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour