Arch Linux

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!
Tasklist

FS#72142 - [thunderbird] 91 added support for mid: URLs

Attached to Project: Arch Linux
Opened by Alex Degenhart (einsteinchen) - Wednesday, 15 September 2021, 10:25 GMT
Last edited by Leonidas Spyropoulos (inglor) - Tuesday, 05 September 2023, 15:42 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Leonidas Spyropoulos (inglor)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

For this feature to be usable (e.g. via xdg-open) the thunderbird.desktop file should list `x-scheme-handler/mid` in the `MimeType` field.

Related upstream issues:
* Implementation: https://bugzilla.mozilla.org/show_bug.cgi?id=264270
* Confirmation that no extra flag is necessary for mid: URLs: https://bugzilla.mozilla.org/show_bug.cgi?id=1704421#c1
This task depends upon

Closed by  Leonidas Spyropoulos (inglor)
Tuesday, 05 September 2023, 15:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  115.2.0-3
Comment by Leonidas Spyropoulos (inglor) - Thursday, 17 August 2023, 09:19 GMT
Is this still relevant? If not we can close it.
Comment by Alex Degenhart (einsteinchen) - Monday, 21 August 2023, 14:29 GMT
Yes, this is still relevant.

If this helps, here is a proposed patch:

```patch
diff --git a/thunderbird.desktop b/thunderbird.desktop
index 1d08d8e..1a54668 100644
--- a/thunderbird.desktop
+++ b/thunderbird.desktop
@@ -60,7 +60,7 @@ Terminal=false
Type=Application
Icon=thunderbird
Categories=Network;Email;
-MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
+MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;x-scheme-handler/mid;
StartupNotify=true
Actions=ComposeMessage;OpenAddressBook;
```
Comment by Jelle van der Waa (jelly) - Monday, 21 August 2023, 15:32 GMT
Why isn't this fixed in Thunderbird? Why should Arch carry a custom patch.
Comment by Alex Degenhart (einsteinchen) - Wednesday, 23 August 2023, 21:59 GMT
As far as I know the thunderbird.desktop file is currently already maintained by Arch as part of this package at https://gitlab.archlinux.org/archlinux/packaging/packages/thunderbird/-/blob/main/thunderbird.desktop.

I do not know of an official upstream maintained .desktop file, but it might be possible to use the one at https://github.com/mozilla/releases-comm-central/blob/master/taskcluster/docker/tb-flatpak/org.mozilla.Thunderbird.desktop.
Comment by Wiktor Kwapisiewicz (wiktor) - Thursday, 24 August 2023, 10:30 GMT
I just downloaded the lastest package from https://archive.mozilla.org/pub/thunderbird/releases/115.1.1/source/thunderbird-115.1.1.source.tar.xz and yeah it has the desktop file at thunderbird-115.1.1/comm/taskcluster/docker/tb-flatpak/org.mozilla.Thunderbird.desktop.

I've diffed it with what Arch provides and the only relevant change (and, my guess, the rationale why a separate desktop file is in Arch) is that the upstream contains `Exec=thunderbird -compose` while Arch's version uses `Exec=/usr/lib/thunderbird/thunderbird -compose`.

Not sure if the upstream version could be patched during package creation or what's the best way to resolve this issue. (I'd also want to see the mid: support which the upstream already has included).
Comment by loqs (loqs) - Thursday, 24 August 2023, 10:36 GMT
Is there a need to change the path? Arch provides a shell script at /usr/bin/thunderbird that calls /usr/lib/thunderbird/thunderbird and passes along all the arguments.
Comment by Polarian (Polarian) - Sunday, 03 September 2023, 15:01 GMT
  • Field changed: Percent Complete (100% → 0%)
Application icon not being detected with upstream desktop file.
Comment by loqs (loqs) - Sunday, 03 September 2023, 17:26 GMT
Icon=thunderbird in the old .desktop is now Icon=org.mozilla.Thunderbird so either changing it back or renaming the icons to match should work.
Comment by Leonidas Spyropoulos (inglor) - Sunday, 03 September 2023, 17:30 GMT

Loading...