Your message dated Sun, 11 Apr 2021 13:04:27 +0000
with message-id <[email protected]>
and subject line Bug#985366: fixed in thunderbird 1:88.0~b2-1
has caused the Debian Bug report #985366,
regarding thunderbird: Incorrect StartupWMClass in desktop file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
985366: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985366
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: thunderbird
Version: 1:78.8.0-1
Severity: normal
Tags: patch

Dear Maintainer,

The thunderbird.desktop file contains `StartupWMClass=Thunderbird`.
This is incorrect as the Thunderbird window has the WM classes
`Mail` and `thunderbird` (lowercase):

$ grep StartupWMClass /usr/share/applications/thunderbird.desktop 
StartupWMClass=Thunderbird
$ xprop WM_CLASS
[click on the Thunderbird main window]
WM_CLASS(STRING) = "Mail", "thunderbird"

This impacts some startup detection logic, and most noticeably
bamfdeamon which then fails to match windows to the right app.

Note that there *is* apparently a Thunderbird window which includes the
"Thunderbird" WM class, but that's not the main window, and it kind of
looks like a ghost window (other details are funky, including
WM_NORMAL_HINTS specifying a 10x10 window, no icons, etc.):

$ xprop -name Thunderbird WM_CLASS
WM_CLASS(STRING) = "thunderbird", "Thunderbird"

In any case, this window also includes the lowercase class, so would be
matched just as well by it.

Attached is a simple patch that lowercases the StartupWMClass in the
desktop file, which fixes bamfdeamon window matching and doesn't seem
to otherwise cause issues.
This affects e.g. mate-dock-applet as it is a bamfdeamon client.

Regards,
Colomban


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-security'), (500, 
'testing-debug'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages thunderbird depends on:
ii  debianutils          4.11.2
ii  fontconfig           2.13.1-4.2
ii  libatk1.0-0          2.36.0-2
ii  libbotan-2-17        2.17.3+dfsg-3
ii  libbz2-1.0           1.0.8-4
ii  libc6                2.31-4
ii  libcairo-gobject2    1.16.0-4
ii  libcairo2            1.16.0-4
ii  libdbus-1-3          1.12.20-1
ii  libdbus-glib-1-2     0.110-5
ii  libevent-2.1-7       2.1.12-stable-1
ii  libffi7              3.3-5
ii  libfontconfig1       2.13.1-4.2
ii  libfreetype6         2.10.2+dfsg-4
ii  libgcc-s1            10.2.1-1
ii  libgdk-pixbuf-2.0-0  2.40.0+dfsg-10
ii  libglib2.0-0         2.66.2-1
ii  libgtk-3-0           3.24.23-2
ii  libicu67             67.1-4
ii  libjson-c5           0.15-1
ii  libnspr4             2:4.29-1
ii  libnss3              2:3.60-1
ii  libpango-1.0-0       1.46.2-1
ii  libstdc++6           10.2.1-1
ii  libvpx6              1.8.2-1
ii  libx11-6             2:1.7.0-2
ii  libx11-xcb1          2:1.7.0-2
ii  libxcb-shm0          1.14-2
ii  libxcb1              1.14-2
ii  libxext6             2:1.3.3-1+b2
ii  libxrender1          1:0.9.10-1
ii  psmisc               23.3-1
ii  x11-utils            7.7+5
ii  zlib1g               1:1.2.11.dfsg-2

Versions of packages thunderbird recommends:
ii  hunspell-en-us [hunspell-dictionary]  1:2019.10.06-1
ii  myspell-fr-gut [myspell-dictionary]   1:1.0-32

Versions of packages thunderbird suggests:
ii  apparmor          2.13.5-1+b2
pn  fonts-lyx         <none>
ii  libgssapi-krb5-2  1.17-10
ii  libgtk2.0-0       2.24.32-4

-- no debconf information
Fix the StartupWMClass to actually match what Thunderbird sets as WM_CLASS

--- a/debian/thunderbird.desktop
+++ b/debian/thunderbird.desktop
@@ -10,7 +10,7 @@ Version=1.0
 Icon=thunderbird
 Categories=Network;Email;News;GTK;
 MimeType=message/rfc822;x-scheme-handler/mailto;text/calendar;text/x-vcard;
-StartupWMClass=Thunderbird
+StartupWMClass=thunderbird
 StartupNotify=true
 Name[ast]=Veceru de corréu Thunderbird
 Name[ca]=Client de correu Thunderbird

--- End Message ---
--- Begin Message ---
Source: thunderbird
Source-Version: 1:88.0~b2-1
Done: Carsten Schoenert <[email protected]>

We believe that the bug you reported is fixed in the latest version of
thunderbird, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Carsten Schoenert <[email protected]> (supplier of updated thunderbird 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 11 Apr 2021 13:50:27 +0200
Source: thunderbird
Architecture: source
Version: 1:88.0~b2-1
Distribution: experimental
Urgency: medium
Maintainer: Carsten Schoenert <[email protected]>
Changed-By: Carsten Schoenert <[email protected]>
Closes: 985366
Changes:
 thunderbird (1:88.0~b2-1) experimental; urgency=medium
 .
   [ Carsten Schoenert ]
   * [7af1a0b] New upstream version 88.0~b2
   * [30d1d48] rebuild patch queue from patch-queue branch
     modified patch:
     debian-hacks/Add-another-preferences-directory-for-applications-p.patch
     porting-armhf/Don-t-use-LLVM-internal-assembler-on-armhf.patch
     removed patches (included upstream):
     porting-arm/Reduce-memory-usage-while-linking-on-arm-el-hf-platforms.patch
     
porting-s390x/Explicitly-instantiate-TIntermTraverser-traverse-TIntermN.patch
     renamed patch:
     fixes/Load-dependent-libraries-with-their-real-path-to-avo.patch ->
     fixes/Load-dependent-libraries-with-their-real-path.patch
   * [f45da92] d/control: Increase B-D for libnss3-dev
 .
   [ Colomban Wendling ]
   * [bbf78cb] d/thunderbird.desktop: Switch StartupWMClass (Closes: #985366)
 .
   [ Carsten Schoenert ]
   * [a2cc9e0] d/control: Adding nasm to Build-Depends
   * [41fad62] d/copyright: update due removed content
Checksums-Sha1:
 fd02f3896d8baa96301ebd1540a14ff8a3d1ccd5 8088 thunderbird_88.0~b2-1.dsc
 14cc3c45c199f41dfd4f2b4f4b5244bea0472203 11856612 
thunderbird_88.0~b2.orig-thunderbird-l10n.tar.xz
 83f351ae8674d5a8c4ec35d18c46e3e28dd52ffe 417802180 
thunderbird_88.0~b2.orig.tar.xz
 f1d3ac5a615ea91c096ae05af27baa9192ab48df 537656 
thunderbird_88.0~b2-1.debian.tar.xz
 45500fec9ba918728d5204a57fbc4c97a29c0a6b 35430 
thunderbird_88.0~b2-1_amd64.buildinfo
Checksums-Sha256:
 f06b54057e9b332793d942a5ecf830e9ce8ac7c6885bf1929aeff42db4a10920 8088 
thunderbird_88.0~b2-1.dsc
 01d3ca0c6717f191e607d9fbf6506a74f1f42b81071e19a44b628efc08b0dd14 11856612 
thunderbird_88.0~b2.orig-thunderbird-l10n.tar.xz
 faef752e2fb9edf3e7c06b9cbb97f136e1463528b5aa86a83295070ebc6dd287 417802180 
thunderbird_88.0~b2.orig.tar.xz
 8716f1f2ad60a2698c442807be5bf5c8da83ba80b6585f26710139935c0433c9 537656 
thunderbird_88.0~b2-1.debian.tar.xz
 9f06d2aa711fa06783396f695f755fe295e4c92245206c39e57fad81f4559c87 35430 
thunderbird_88.0~b2-1_amd64.buildinfo
Files:
 24bdf9cdb98aaa072e2c00193d146570 8088 mail optional thunderbird_88.0~b2-1.dsc
 46a55be5ebf623be0c3e190801839afc 11856612 mail optional 
thunderbird_88.0~b2.orig-thunderbird-l10n.tar.xz
 6701efe73930859ec1d75eb003cd6868 417802180 mail optional 
thunderbird_88.0~b2.orig.tar.xz
 9aa2443c37652ebf5160e01693dd4984 537656 mail optional 
thunderbird_88.0~b2-1.debian.tar.xz
 99db6b4d0c927f652e04ea7d7674a816 35430 mail optional 
thunderbird_88.0~b2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEtw38bxNP7PwBHmKqgwFgFCUdHbAFAmBy7HgACgkQgwFgFCUd
HbBb4A//a5yzOXm+Czn2bRetzUcCKbFfMRm2RBoM+rJ4ipNx71Hygu3Qg8EgArG/
Dj5vULjexNb+bxRYg6eJzDCl9c4JzmtIgvMzep+0HGZ6avGQWF8Wk1wkO7YNY/aQ
Zz7HYEUB4f4xA2Stsrt6HlHyzXuBc8m9Pepvh3ITiltaeUfqUZTPlqGHT7k6pxlO
Zv4IFoPsbg3uBA3kwp5tjFManHyNUykv+RvX4fJi8WAvbIYl7WsIwcJzFijoIRBT
S0hL0lfxgwR8y7pR2CgyQCuBBMrBdeZYvY16PKMKguqHhiLchbSyIUtMYkAg7DJN
k4oXOyb25+cw3BsfQMygO/5yJdiLQw6C5qpaagMQX0s7Rab0qnvOX8QThOZ4S/32
CDNt8R9TnlG5De/1evZpEC/LfCsT0dl+ZpAmbKfxIlYJ310ALYhzRtakiLnB8rI/
46rXL33A9DQmA5CjhD92EDmSYrvTTaiRlxZPWNQYsXHp+w/eAbQEkZ8jfXxFtvkk
pLmxBb4oa62mHNuM+zxzcmCSC4H28JI67jMx38WtC1zu8P5iDsRa+AreUQmwWIVk
eV9/OugsriAcCM08917ncOMObStqSYWzjJwi/XsbZpusv5rXVASfQOpYFvQug0io
hFJ+t7Y9XnBiyUUmW0sj+zokChU8tJslnbNAHQ4J/+Srqg/xeCo=
=paAY
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to