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
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
|
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
Tuesday, 05 September 2023, 15:42 GMT
Reason for closing: Fixed
Additional comments about closing: 115.2.0-3
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;
```
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.
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).
[1]: https://gitlab.archlinux.org/archlinux/packaging/packages/thunderbird/-/blob/9754d1932224a8483b1f6df2cb937a666a3158a6/PKGBUILD#L133
[2]: https://gitlab.archlinux.org/archlinux/packaging/packages/thunderbird/-/blob/9754d1932224a8483b1f6df2cb937a666a3158a6/PKGBUILD#L139