ubuntu-bug -w (using xprop) doesn't work under wayland
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Unassigned | ||
Impish |
Fix Released
|
Low
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
This bug makes it more difficult for Wayland users to report bugs with apport. When a Wayland user tries to use the -w,--window option, apport fails silently. We do not want users to face a high barrier to submitting bug reports.
The patch for this bug adds a message explaining that the -w,--window option cannot be used on Wayland, and suggests a method for finding the window's PID instead.
[Test Plan]
* Log on to Ubuntu on Wayland. You can check that $XDG_SESSION_
* Open a terminal, and run `ubuntu-bug -w`.
* Click on any other window, and observe that the apport UI will not respond.
[Where problems could occur]
The patch uses os.getenv to check that $XDG_SESSION_TYPE is set to 'wayland'. If either of these strings in the patch were wrong, or the environment variable was not used in the target release, the condition would likely never be true.
[Original Description]
I want to report a Bug about the application Studio Controls.
As I did it already quite a few times, I run "ubuntu-bug -w", get a message that I can select the window of the app I want to report a bug about after closing this message.
I close the message with a click on the appropriate button.
I click on the window of the application "Studio Controls" that I want to report a bug about.
Nothing happens.
I wait for a few minutes. Still nothing happens.
In the console where I started ubuntu-bug -w I see the following message:
(apport-gtk:11537): Gdk-CRITICAL **: 20:06:41.384: gdk_wayland_
What I expect:
Usaully when I use this procedure, after a relatively short while a new message window pops up asking me if the bug should be reported and showing me the data that is sent to Launchpad.
I tried other applications, too, same effect.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: apport 2.20.11-0ubuntu71
ProcVersionSign
Uname: Linux 5.13.0-
ApportLog:
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Dec 1 20:01:23 2021
InstallationDate: Installed on 2020-04-12 (597 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitec
SourcePackage: apport
UpgradeStatus: Upgraded to impish on 2021-11-14 (16 days ago)
Related branches
- Brian Murray (community): Needs Fixing
-
Diff: 54 lines (+24/-0)3 files modifiedapport/ui.py (+13/-0)
debian/changelog (+6/-0)
man/apport-cli.1 (+5/-0)
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- ubuntu-bug -w doesn't work under wayland + ubuntu-bug -w (using xprop) doesn't work under wayland |
tags: | added: fr-1989 |
tags: | removed: rls-jj-incoming |
Changed in apport (Ubuntu Impish): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
Changed in apport (Ubuntu Jammy): | |
status: | Confirmed → Triaged |
Changed in apport (Ubuntu Impish): | |
importance: | Medium → Low |
Changed in apport (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in x11-utils (Ubuntu Focal): | |
status: | New → Invalid |
no longer affects: | x11-utils (Ubuntu) |
no longer affects: | x11-utils (Ubuntu Focal) |
no longer affects: | x11-utils (Ubuntu Impish) |
no longer affects: | x11-utils (Ubuntu Jammy) |
tags: |
added: verification-failed verification-failed-focal removed: verification-done-focal verification-needed |
tags: |
added: verification-done removed: verification-needed |
Further information:
It seems the behaviour described does not apply to all applications/ windows.
For example when I have "qjackctl" running, I get the changed cursor that indicates I can chose that windows, and with this window it works as expected.
The error message in the console appears anyway.