Merge ~azzar1/ubuntu/+source/gnome-initial-setup:ubuntu/master-livepatch-privacy-url-from-etc-os-release into ~ubuntu-desktop/ubuntu/+source/gnome-initial-setup:ubuntu/master

Proposed by Andrea Azzarone
Status: Merged
Merged at revision: 55eddd6995800b78b2daa7818731d555da270055
Proposed branch: ~azzar1/ubuntu/+source/gnome-initial-setup:ubuntu/master-livepatch-privacy-url-from-etc-os-release
Merge into: ~ubuntu-desktop/ubuntu/+source/gnome-initial-setup:ubuntu/master
Diff against target: 67 lines (+17/-5)
2 files modified
debian/changelog (+7/-0)
debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch (+10/-5)
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+359004@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Is there a report about that? What's the rational to point to another page than the one previously used?

review: Needs Information
Revision history for this message
Andrea Azzarone (azzar1) wrote :

> Thank you for your bug report. Is there a report about that? What's the
> rational to point to another page than the one previously used?

There is no bug report but I can create it if needed. It's the same page but we get it from /etc/os-release as we do in other parts.

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

We removed the code to parse os-relase no? (since the "what is being reported to Canonical" info is different from a legal notice). In any case, if Will confirms it's the right page go for it

Revision history for this message
Andrea Azzarone (azzar1) wrote :

> We removed the code to parse os-relase no? (since the "what is being reported
> to Canonical" info is different from a legal notice)

That was for the report page.

In any case, if Will confirms it's the right page go for it

The livepatch page should point out to the link in /etc/os-release. Will agreed on /etc/os-release in irc.

Revision history for this message
Will Cooke (willcooke) wrote :

The correct policy for __Livepatch__ is: https://www.ubuntu.com/legal/data-privacy
The "PRIVACY_POLICY_URL" in /etc/os-release does indeed point to that page.
Therefore +1.

Note the Ubuntu Report page must still point to the other policy at https://www.ubuntu.com/legal/systems-information-notice. This patch does not touch that and Seb already fixed it.

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

K, fine, let's merge that then :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 64201c2..3a5dc35 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1gnome-initial-setup (3.30.0-1ubuntu5) UNRELEASED; urgency=medium
2
3 * debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch:
4 - Use privacy URL from /etc/os-release in Livepatch page.
5
6 -- Andrea Azzarone <andrea.azzarone@canonical.com> Mon, 19 Nov 2018 18:08:23 +0000
7
1gnome-initial-setup (3.30.0-1ubuntu4) disco; urgency=medium8gnome-initial-setup (3.30.0-1ubuntu4) disco; urgency=medium
29
3 * debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch:10 * debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch:
diff --git a/debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch b/debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch
index ee1033e..3271d3a 100644
--- a/debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch
+++ b/debian/patches/0001-Add-Ubuntu-mode-with-special-pages.patch
@@ -26,7 +26,7 @@ Subject: Add Ubuntu mode with special pages
26 .../pages/livepatch/gis-auth-dialog.c | 528 ++++++++++++++++++++26 .../pages/livepatch/gis-auth-dialog.c | 528 ++++++++++++++++++++
27 .../pages/livepatch/gis-auth-dialog.h | 40 ++27 .../pages/livepatch/gis-auth-dialog.h | 40 ++
28 .../pages/livepatch/gis-auth-dialog.ui | 231 +++++++++28 .../pages/livepatch/gis-auth-dialog.ui | 231 +++++++++
29 .../pages/livepatch/gis-livepatch-page.c | 533 +++++++++++++++++++++29 .../pages/livepatch/gis-livepatch-page.c | 538 +++++++++++++++++++++
30 .../pages/livepatch/gis-livepatch-page.h | 52 ++30 .../pages/livepatch/gis-livepatch-page.h | 52 ++
31 .../pages/livepatch/gis-livepatch-page.ui | 156 ++++++31 .../pages/livepatch/gis-livepatch-page.ui | 156 ++++++
32 .../pages/livepatch/livepatch.gresource.xml | 9 +32 .../pages/livepatch/livepatch.gresource.xml | 9 +
@@ -44,7 +44,7 @@ Subject: Add Ubuntu mode with special pages
44 .../pages/ubuntu-report/ubuntu-report.svg | 1 +44 .../pages/ubuntu-report/ubuntu-report.svg | 1 +
45 meson.build | 3 +45 meson.build | 3 +
46 po/POTFILES.in | 12 +46 po/POTFILES.in | 12 +
47 41 files changed, 2969 insertions(+), 7 deletions(-)47 41 files changed, 2974 insertions(+), 7 deletions(-)
48 create mode 100644 data/com.ubuntu.welcome.policy.in48 create mode 100644 data/com.ubuntu.welcome.policy.in
49 create mode 100644 data/its/polkit.its49 create mode 100644 data/its/polkit.its
50 create mode 100644 data/its/polkit.loc50 create mode 100644 data/its/polkit.loc
@@ -2025,10 +2025,10 @@ index 0000000..2f3c742
2025+</interface>2025+</interface>
2026diff --git a/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c b/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c2026diff --git a/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c b/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c
2027new file mode 1006442027new file mode 100644
2028index 0000000..e6048192028index 0000000..eab2fb6
2029--- /dev/null2029--- /dev/null
2030+++ b/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c2030+++ b/gnome-initial-setup/pages/livepatch/gis-livepatch-page.c
2031@@ -0,0 +1,533 @@2031@@ -0,0 +1,538 @@
2032+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */2032+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2033+/*2033+/*
2034+ * Copyright (C) 2018 Canonical Ltd.2034+ * Copyright (C) 2018 Canonical Ltd.
@@ -2452,10 +2452,15 @@ index 0000000..e604819
2452+static void2452+static void
2453+show_legal (GtkButton *button, GisLivepatchPage *page)2453+show_legal (GtkButton *button, GisLivepatchPage *page)
2454+{2454+{
2455+ g_autofree gchar *buffer = NULL;
2456+ g_autofree gchar *privacy_policy = NULL;
2455+ g_autoptr(GError) error = NULL;2457+ g_autoptr(GError) error = NULL;
2456+2458+
2459+ if (g_file_get_contents ("/etc/os-release", &buffer, NULL, NULL))
2460+ privacy_policy = get_item (buffer, "PRIVACY_POLICY_URL");
2461+
2457+ if (!gtk_show_uri_on_window (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page))),2462+ if (!gtk_show_uri_on_window (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page))),
2458+ "https://www.ubuntu.com/legal/terms-and-policies/systems-information-notice",2463+ privacy_policy,
2459+ GDK_CURRENT_TIME, &error)) {2464+ GDK_CURRENT_TIME, &error)) {
2460+ GtkWidget *dialog;2465+ GtkWidget *dialog;
2461+ dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page))),2466+ dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page))),

Subscribers

People subscribed via source and target branches