Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#79590 - [thunderbird] Cannot pin to Gnome favourites after update
Attached to Project:
Arch Linux
Opened by Ben (root) - Wednesday, 06 September 2023, 08:14 GMT
Last edited by Toolybird (Toolybird) - Thursday, 14 September 2023, 22:31 GMT
Opened by Ben (root) - Wednesday, 06 September 2023, 08:14 GMT
Last edited by Toolybird (Toolybird) - Thursday, 14 September 2023, 22:31 GMT
|
DetailsDescription: Cannot pin Thunderbird to Gnome favourites after update from 115.2.0-1 to 115.2.0-3.
The desktop file is renamed from /usr/share/applications/thunderbird.desktop to /usr/share/applications/org.mozilla.Thunderbird.desktop and that appears to have broken it. Just creating a soft link from org.mozilla.Thunderbird.desktop to thunderbird.desktop fixes the issue, but now there are two Thunderbird instances when clicking on Super and searching for "thunderbird". Steps to reproduce: * Try to pin Thunderbird to Gnome's favourites. |
This task depends upon
Closed by Toolybird (Toolybird)
Thursday, 14 September 2023, 22:31 GMT
Reason for closing: Fixed
Additional comments about closing: thunderbird 115.2.2-1
Thursday, 14 September 2023, 22:31 GMT
Reason for closing: Fixed
Additional comments about closing: thunderbird 115.2.2-1
See: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5739
Instead of adding a symlink inside package, adding `StartupWMClass` field inside desktop file sounds like a better idea.
- ~~https://bugzilla.mozilla.org/show_bug.cgi?id=1107281 (Opened in 2014)~~ No it is about Firefox
- https://bugzilla.mozilla.org/show_bug.cgi?id=1610305 (Opened in 2020)
The fix: https://hg.mozilla.org/comm-central/rev/ce1f17a138e651effb441e8abee90dcc344dda8b
```
--- a/taskcluster/docker/thunderbird-flatpak/org.mozilla.Thunderbird.desktop.jinja2
+++ b/taskcluster/docker/thunderbird-flatpak/org.mozilla.Thunderbird.desktop.jinja2
@@ -10,16 +10,17 @@ GenericName={{ strings.get_message("en-U
{%- endfor %}
Exec=thunderbird %u
Terminal=false
Type=Application
Icon=org.mozilla.Thunderbird
Categories=Network;Email;
MimeType=message/rfc822;x-scheme-handler/mailto;text/calendar;text/vcard;text/x-vcard;x-scheme-handler/webcal;x-scheme-handler/webcals;x-scheme-handler/mid;
StartupNotify=true
+StartupWMClass={{ wmclass }}
Actions=ComposeMessage;OpenAddressBook;
[Desktop Action ComposeMessage]
Name={{ strings.get_message("en-US", "flatpak-desktop-action-compose") }}
{%- for line in translate("Name", "flatpak-desktop-action-compose") %}
{{ line }}
{%- endfor %}
Exec=thunderbird -compose
```
Note that the actual desktop file they use is generated by jinja2 instead of directly using taskcluster/docker/thunderbird-flatpak/org.mozilla.Thunderbird.desktop.
The thing is that it worked correctly in version 115.2.0-1 with the thunderbird.desktop file, but in version 115.2.0-3 the file name was changed to org.mozilla.Thunderbird.desktop. And in both files there is no StartupWMClass directive in the desktop file.
I understand that the difference between 115.2.0-1 and 115.2.0-3 is only that Archlinux builds it differently and that it is the same source (115.2.0), correct? That is why I deduced that the problem was introduced by Archlinux.
https://gitlab.archlinux.org/archlinux/packaging/packages/thunderbird/-/blob/a1a72d04a47bb693babb2d6d2f754675003f90a2/PKGBUILD#L133
The desktop file it uses comes from upstream's Flatpak builds. The problem now is that, upstream is using a jinja2 template (with bug fixed) to construct desktop file, while they leave a complete desktop file (without StartupWMClass) at the same directory -- seem like they forget to remove or update this file.
install -Dm 644 -T comm/taskcluster/docker/tb-flatpak/org.mozilla.Thunderbird.desktop "$pkgdir/usr/share/applications/thunderbird.desktop"