Merge lp:~enr0n/ubuntu/jammy/apport/lp.1952947 into lp:~ubuntu-core-dev/ubuntu/jammy/apport/ubuntu

Proposed by Nick Rosbrook
Status: Merged
Merged at revision: 2890
Proposed branch: lp:~enr0n/ubuntu/jammy/apport/lp.1952947
Merge into: lp:~ubuntu-core-dev/ubuntu/jammy/apport/ubuntu
Diff against target: 53 lines (+24/-0)
3 files modified
apport/ui.py (+13/-0)
debian/changelog (+6/-0)
man/apport-cli.1 (+5/-0)
To merge this branch: bzr merge lp:~enr0n/ubuntu/jammy/apport/lp.1952947
Reviewer Review Type Date Requested Status
Brian Murray Pending
Review via email: mp+415635@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'apport/ui.py'
--- apport/ui.py 2021-12-01 22:11:09 +0000
+++ apport/ui.py 2022-02-15 22:16:37 +0000
@@ -727,6 +727,19 @@
727 self.ui_error_message(_('Invalid problem report'), excstr(e))727 self.ui_error_message(_('Invalid problem report'), excstr(e))
728 return True728 return True
729 elif self.options.window:729 elif self.options.window:
730 if os.getenv('XDG_SESSION_TYPE') == 'wayland':
731 self.ui_error_message(_('Cannot create report'),
732 _('The window option cannot be used on '
733 'Wayland.\n\nPlease find the window\'s '
734 'process ID and then run \'ubuntu-bug '
735 '<process ID>\'.'
736 '\n\nThe process ID can be found '
737 'by running the System Monitor application. '
738 'In the Processes tab, scroll until you '
739 'find the correct application. The process '
740 'ID is the number listed in the ID column.'))
741 return True
742
730 self.ui_info_message('', _('After closing this message '743 self.ui_info_message('', _('After closing this message '
731 'please click on an application window to report a problem about it.'))744 'please click on an application window to report a problem about it.'))
732 xprop = subprocess.Popen(['xprop', '_NET_WM_PID'],745 xprop = subprocess.Popen(['xprop', '_NET_WM_PID'],
733746
=== modified file 'debian/changelog'
--- debian/changelog 2022-01-25 17:59:14 +0000
+++ debian/changelog 2022-02-15 22:16:37 +0000
@@ -1,3 +1,9 @@
1apport (2.20.11-0ubuntu77) UNRELEASED; urgency=medium
2
3 * apport/ui.py: Error out when -w option is used on wayland (LP: #1952947).
4
5 -- Nick Rosbrook <nick.rosbrook@canonical.com> Tue, 15 Feb 2022 10:10:59 -0500
6
1apport (2.20.11-0ubuntu76) jammy; urgency=medium7apport (2.20.11-0ubuntu76) jammy; urgency=medium
28
3 * data/package-hooks/ubuntu-desktop-installer.py: Add in a new package hook9 * data/package-hooks/ubuntu-desktop-installer.py: Add in a new package hook
410
=== modified file 'man/apport-cli.1'
--- man/apport-cli.1 2011-04-19 08:21:30 +0000
+++ man/apport-cli.1 2022-02-15 22:16:37 +0000
@@ -125,6 +125,11 @@
125the name of the package, or if the application window has stopped responding125the name of the package, or if the application window has stopped responding
126and you cannot report the problem from the "Help" menu of the application.126and you cannot report the problem from the "Help" menu of the application.
127127
128This option is not supported on Wayland. Users running Wayland should use another
129option such as
130.B -P
131to specify the application.
132
128.SH ENVIRONMENT133.SH ENVIRONMENT
129134
130.TP135.TP

Subscribers

People subscribed via source and target branches