Package: firefox-esr
Version: 102.12.0esr-1~deb12u1
Severity: minor
Tags: patch upstream
X-Debbugs-Cc: kuteyni...@gmail.com

Dear Maintainer,

I have selected "Use Gmail" in Firefox Settings -> General -> Applications ->
mailto.
Then I wanted to assign Firefox as a default mailing app in Default
Applications of Gnome settings in order to launch Firefox with Gmail
automatically from external apps. However, Firefox wasn't listed among
available options for Mail.

The reason is probably in the fact that x-scheme-handler/mailto isn't listed in
MimeType field of /usr/share/applications/firefox-esr.desktop:

MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-
handler/http;x-scheme-handler/https;

The man page of xdg-mime says: "The application's desktop file must list
support for all the MIME types that it wishes to be the default handler for".
So the fix might look as follows:

MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-
handler/http;x-scheme-handler/https;x-scheme-handler/mailto;

As a workaround I had to assign Firefox manually via the configuration file
~/.config/mimeapps.list:
[Default Applications]
x-scheme-handler/mailto=firefox-esr.desktop

Only after this manual intervention Gnome accepted Firefox as a mail app.

Reported to Firefox Bugzilla too:
https://bugzilla.mozilla.org/show_bug.cgi?id=1839244


-- Package-specific info:


-- Addons package information

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages firefox-esr depends on:
ii  debianutils          5.7-0.4
ii  fontconfig           2.14.1-4
ii  libasound2           1.2.8-1+b1
ii  libatk1.0-0          2.46.0-5
ii  libc6                2.36-9
ii  libcairo-gobject2    1.16.0-7
ii  libcairo2            1.16.0-7
ii  libdbus-1-3          1.14.6-1
ii  libdbus-glib-1-2     0.112-3
ii  libevent-2.1-7       2.1.12-stable-8
ii  libffi8              3.4.4-1
ii  libfontconfig1       2.14.1-4
ii  libfreetype6         2.12.1+dfsg-5
ii  libgcc-s1            12.2.0-14
ii  libgdk-pixbuf-2.0-0  2.42.10+dfsg-1+b1
ii  libglib2.0-0         2.74.6-2
ii  libgtk-3-0           3.24.37-2
ii  libnspr4             2:4.35-1
ii  libnss3              2:3.87.1-1
ii  libpango-1.0-0       1.50.12+ds-1
ii  libstdc++6           12.2.0-14
ii  libvpx7              1.12.0-1
ii  libx11-6             2:1.8.4-2
ii  libx11-xcb1          2:1.8.4-2
ii  libxcb-shm0          1.15-1
ii  libxcb1              1.15-1
ii  libxcomposite1       1:0.4.5-1
ii  libxdamage1          1:1.1.6-1
ii  libxext6             2:1.3.4-1+b1
ii  libxfixes3           1:6.0.0-2
ii  libxrandr2           2:1.5.2-2+b1
ii  libxtst6             2:1.2.3-1.1
ii  procps               2:4.0.2-3
ii  zlib1g               1:1.2.13.dfsg-1

Versions of packages firefox-esr recommends:
ii  libavcodec59  7:5.1.3-1

Versions of packages firefox-esr suggests:
pn  fonts-lmodern          <none>
pn  fonts-stix | otf-stix  <none>
ii  libcanberra0           0.30-10
ii  libgssapi-krb5-2       1.20.1-2
pn  pulseaudio             <none>

-- no debconf information

Reply via email to