Icon duplicated in dock when thunderbird is open
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(Not tracked)
People
(Reporter: fabienm, Unassigned)
Details
Attachments
(1 obsolete file)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Steps to reproduce:
In Ubuntu 20.04, run thunderbird beta 98 from a .desktop entry pinned to the dock.
Exec=/opt/thunderbird-nightly/thunderbird-bin -P default %u
No difference using either thunderbird or thunderbird-bin
Enter the main password et click log in.
Actual results:
When the main window shows, a second thunderbird icon shows at the bottom of the dock. It can't be neither moved up or pinned.
Expected results:
The window should attach to the icon used to launch it.
The issue appeared with TB 98.
This is also true for me in Ubuntu 21.10. Also worth noting is that the icon that is placed in the dock is not the Thunderbird icon, but a generic gear icon.
Finally found a solution, also works with firefox (mozilla's archive download) :
1 Open thunderbird
2 Launch xprop WM_CLASS in a Terminal
3 Click on thunderbird's window
4 Copy thunderbird's .desktop laucher file from /usr/share/applications to ~/.local/share/applications
5 Open desktop file in gedit
6 Add the line : StartupWMClass="one of the items recovered from step 2, without quotes"
7 Save and run sudo update-desktop-database
From now on the window is attached to the laucher icon in dock.
Updated•1 year ago
|
Comment 4•4 months ago
|
||
Does this still reproduce for you?
I still reproduce with daily downloaded from thunderbird.net and fix it with steps in #2.
Note this variation for wayland in Gnome : Press Alt-F2, enter "lg", go to the windows tab to get the wmclass of opened windows.
It seems that distro-provided desktop files have no StartupWMClass, or with a different value and I couldn't find a .desktop provided in thunderbir.net's archive to use instead.
Description
•