[gnome-build-meta/valentindavid/pinebook-pro: 8/12] Work around a polkit issue with gnome-initial-session
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/pinebook-pro: 8/12] Work around a polkit issue with gnome-initial-session
- Date: Thu, 16 Apr 2020 18:42:09 +0000 (UTC)
commit 4d2e82bc907b7950a04645cb525a5e3df4317984
Author: Valentin David <valentin david codethink co uk>
Date: Wed Apr 15 23:35:31 2020 +0000
Work around a polkit issue with gnome-initial-session
elements/core/gnome-initial-setup.bst | 8 +++++++-
.../work-around-polkit-without-session.patch | 16 ++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/elements/core/gnome-initial-setup.bst b/elements/core/gnome-initial-setup.bst
index 767ac681..f575b68f 100644
--- a/elements/core/gnome-initial-setup.bst
+++ b/elements/core/gnome-initial-setup.bst
@@ -4,8 +4,14 @@ sources:
url: gitlab_gnome_org:GNOME/gnome-initial-setup.git
track: master
- kind: local
- path: files/gnome-initial-setup
+ path: files/gnome-initial-setup/gnome-initial-setup-sysusers.conf
directory: gnome-initial-setup-config
+- kind: patch
+ # FIXME: Because gnome-initial-setup runs as a user service, it does
+ # not seem to be associated to a seat. So the polkit subject is not
+ # considered local. Users cannot set up the wifi.
+ # See issue https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/102
+ path: files/gnome-initial-setup/work-around-polkit-without-session.patch
build-depends:
- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
depends:
diff --git a/files/gnome-initial-setup/work-around-polkit-without-session.patch
b/files/gnome-initial-setup/work-around-polkit-without-session.patch
new file mode 100644
index 00000000..f3a943d8
--- /dev/null
+++ b/files/gnome-initial-setup/work-around-polkit-without-session.patch
@@ -0,0 +1,16 @@
+diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
+index 514aa8a..71a9c14 100644
+--- a/data/20-gnome-initial-setup.rules
++++ b/data/20-gnome-initial-setup.rules
+@@ -20,10 +20,7 @@ polkit.addRule(function(action, subject) {
+ action.id.indexOf('com.endlessm.ParentalControls.') === 0);
+
+ if (actionMatches) {
+- if (subject.local)
+- return 'yes';
+- else
+- return 'auth_admin';
++ return 'yes';
+ }
+
+ return undefined;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]