Merge lp:~seb128/update-notifier/wayland-no-pkexec into lp:update-notifier/ubuntu

Proposed by Sebastien Bacher
Status: Merged
Approved by: Brian Murray
Approved revision: 915
Merged at revision: 916
Proposed branch: lp:~seb128/update-notifier/wayland-no-pkexec
Merge into: lp:update-notifier/ubuntu
Diff against target: 33 lines (+13/-2)
2 files modified
debian/changelog (+7/-0)
src/crash.c (+6/-2)
To merge this branch: bzr merge lp:~seb128/update-notifier/wayland-no-pkexec
Reviewer Review Type Date Requested Status
Brian Murray Needs Information
Ubuntu Core Development Team Pending
Review via email: mp+330278@code.launchpad.net

Commit message

src/crash.c: don't prompt about system reports under wayland, pkexec
doesn't work there

Description of the change

src/crash.c: don't prompt about system reports under wayland, pkexec
doesn't work there

To post a comment you must log in.
915. By Sebastien Bacher

src/crash.c: don't prompt about system reports under wayland, pkexec
doesn't work there

Revision history for this message
Brian Murray (brian-murray) wrote :

Is there no alternative to pkexec under wayland? How will system crashes be reported?

Revision history for this message
Brian Murray (brian-murray) :
review: Needs Information
Revision history for this message
Sebastien Bacher (seb128) wrote :

> Is there no alternative to pkexec under wayland? How will system crashes be reported?

no, that's by design, we are going to improve apport to have it's interface being owned by the user and talking to a privileged backend (same as update-manager)

Revision history for this message
Sebastien Bacher (seb128) wrote :

it's not ideal to not report the system crashes but the alternative is to give a password prompt that leads to an apport segfault which triggers another report

Revision history for this message
Brian Murray (brian-murray) wrote :

> > Is there no alternative to pkexec under wayland? How will system crashes be
> reported?
>
> no, that's by design, we are going to improve apport to have it's interface
> being owned by the user and talking to a privileged backend (same as update-
> manager)

When you say we here do you mean the desktop team or the foundations team? I haven't heard of this work.

Revision history for this message
Sebastien Bacher (seb128) wrote :

> When you say we here do you mean the desktop team or the foundations team? I haven't heard of this work.

"we are going to improve" was meant to be "we are going to need to improve", indeed I don't think that work has been discussed yet but it's probably for foundations since that's the team which maintains it

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2017-09-05 21:48:13 +0000
3+++ debian/changelog 2017-09-06 11:42:48 +0000
4@@ -1,3 +1,10 @@
5+update-notifier (3.186) UNRELEASED; urgency=medium
6+
7+ * src/crash.c: don't prompt about system reports under wayland, pkexec
8+ doesn't work there
9+
10+ -- Sebastien Bacher <seb128@ubuntu.com> Wed, 06 Sep 2017 10:10:32 +0200
11+
12 update-notifier (3.185) artful; urgency=medium
13
14 * src/livepatch.c: Use ngettext to correctly handle the plural form, thanks
15
16=== modified file 'src/crash.c'
17--- src/crash.c 2013-06-04 14:41:18 +0000
18+++ src/crash.c 2017-09-06 11:42:48 +0000
19@@ -67,8 +67,12 @@
20 {
21 g_debug("fire up the crashreport tool");
22 // be nice and always ask first before firing up pkexec
23- if (check_system_crashes() && ask_invoke_apport_with_pkexec()) {
24- invoke_with_pkexec(CRASHREPORT_REPORT_APP);
25+ if (check_system_crashes()) {
26+ // workaround, wayland doesn't allow pkexec use
27+ if (g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "wayland") == 0)
28+ g_debug ("no pkexec for system reports under wayland");
29+ else if (ask_invoke_apport_with_pkexec())
30+ invoke_with_pkexec(CRASHREPORT_REPORT_APP);
31 } else {
32 return g_spawn_command_line_async(CRASHREPORT_REPORT_APP, NULL);
33 }

Subscribers

People subscribed via source and target branches

to all changes: