Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1937990

Summary: thunderbird-wayland started Thunderbird on X in Plasma
Product: [Fedora] Fedora Reporter: Matt Fagnani <matthew.fagnani>
Component: thunderbirdAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: erack, gecko-bugs-nobody, joshua.ferguson.273, kai-engert-fedora, pjasicek, rhughes, rstrode, sandmann, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt Fagnani 2021-03-11 21:11:35 UTC
Description of problem:

When I've started Thunderbird on Wayland from thunderbird-wayland in Plasma 5.21.2 and earlier in a Fedora 34 KDE Plasma installation, Thunderbird was started on X. The Troubleshooting information page when running thunderbird-wayland showed Window Protocol	x11

Thunderbird on Wayland started with MOZ_ENABLE_WAYLAND=1 thunderbird showed Window Protocol	wayland

Version-Release number of selected component (if applicable):
thunderbird-wayland-78.8.0-1.fc33.x86_64
gtk3-3.24.26-1.fc34.x86_64

How reproducible:
This occurs every time I've started thunderbird-wayland in Plasma on Wayland.

Steps to Reproduce:
1. Boot a Fedora 34 KDE Plasma installation updated to 2021-3-11 with updates-testing enabled
2. Log in to Plasma 5.21.2 on Wayland
3. If thunderbird-wayland isn't installed, install it with 
sudo dnf install thunderbird-wayland
4. Open the Application Launcher menu
5. Type Thunderbird on Wayland in the search bar
6. Select Thunderbird on Wayland 
7. Select Help > Troubleshooting Information in Thunderbird
8. Look at Window Protocol in the Graphics section of the Troubleshooting Information page

Actual results:
thunderbird-wayland started Thunderbird on X in Plasma

Expected results:
thunderbird-wayland would start Thunderbird on Wayland in Plasma

Additional info:
I upgraded to thunderbird-78.8.0-1.fc33.x86_64 from koji because thunderbird 78.8.0 isn't available in F34 due to a build failure. thunderbird-78.7.0-2.fc34 was also affected. Running thunderbird-wayland started Thunderbird on Wayland in GNOME 40 beta.

Comment 1 Joshua Ferguson 2021-04-08 13:14:34 UTC
can confirm this is also the case with sway on fedora 33.

setting the mentioned environment variable (MOZ_ENABLE_WAYLAND=1) also fixed the issue in my case. 

potentially relevant info:

- sway : v1.5
- thunderbird: 78.8.1

Comment 2 Robert-André Mauchin 🐧 2021-04-21 23:32:01 UTC
Apparently it checks if the desktop is GNOME to enable Wayland, unlike Firefox


cat /usr/bin/thunderbird-wayland
#!/usr/bin/bash
#
# Run Thunderbird under Wayland
#

##
## Enable Wayland backend?
##
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then
  export MOZ_ENABLE_WAYLAND=1
fi
exec /usr/bin/thunderbird "$@

Comment 3 Robert-André Mauchin 🐧 2021-04-21 23:34:26 UTC
Tested it with Wayland: very buggy, the app keeps flickering.