ubuntu-bug won't show GUI window in pure wayland-sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
In case only `WAYLAND_DISPLAY` env variable is set (but no `DISPLAY` as XWayland is disabled), ubuntu-bug won't show its window, even though GTK will use the Wayland backend.
Test case, in an Ubuntu wayland session:
- Run:
env -u DISPLAY ubuntu-bug -w apport
You will get:
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
...........
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (5.9 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): S
*** Uploading problem information
The collected information is being sent to the bug tracking system.
This might take a few minutes.
92%
*** To continue, you must visit the following URL:
https:/
You can launch a browser now, or copy this URL into a browser on another computer.
Choices:
1: Launch a browser now
C: Cancel
Please choose (1/C): 1
marco@marco-
^C
---
So, ubuntu-bug should both consider `DISPLAY` and `WAYLAND_DISPLAY` to be enough to use a graphical session.
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: apport 2.20.11-0ubuntu49
ProcVersionSign
Uname: Linux 5.8.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu49
Architecture: amd64
CasperMD5CheckR
CrashReports: 640:1000:
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 13 15:22:34 2020
InstallationDate: Installed on 2020-10-13 (0 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20201013.1)
PackageArchitec
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
I cannot reproduce your problem and neither find a problem in the code.
Running "env -u DISPLAY ubuntu-bug -w apport" on a fresh Ubuntu 22.04 installation (with GNOME and wayland) opens apport-gtk correctly. Neither killing Xwayland nor only setting WAYLAND_DISPLAY by running "env -i WAYLAND_ DISPLAY= wayland- 0 ubuntu-bug -w apport" did change anything (note: apport-gtk crashed in the latter case, but it was called).
Supporting WAYLAND_DISPLAY as alternative was implemented in bug #1418766 long time ago.
Can you reproduce your problem? What environment are you in?