[gnome-initial-setup/wip/pwithnall/misc-fixes: 3/70] Allow initial setup to switch metrics on and off
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/pwithnall/misc-fixes: 3/70] Allow initial setup to switch metrics on and off
- Date: Fri, 11 Sep 2020 13:29:07 +0000 (UTC)
commit 0cea7963ee1901a35b3cbbb7aea46e0374cf291f
Author: David Winegar <david s winegar gmail com>
Date: Tue Jun 24 12:44:59 2014 -0700
Allow initial setup to switch metrics on and off
Change the polkit permissions rules to allow this. Only allow
access to the `SetEnabled` method, which is currently the only
method that is protected.
(Rebase 3.38: Fix minor rebase conflicts.)
https://phabricator.endlessm.com/T7764
data/20-gnome-initial-setup.rules | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
index 33d7e300..f0a15ac7 100644
--- a/data/20-gnome-initial-setup.rules
+++ b/data/20-gnome-initial-setup.rules
@@ -10,6 +10,7 @@ polkit.addRule(function(action, subject) {
return undefined;
var actionMatches = (action.id.indexOf('org.freedesktop.hostname1.') === 0 ||
+ action.id === 'com.endlessm.Metrics.SetEnabled' ||
action.id.indexOf('org.freedesktop.NetworkManager.') === 0 ||
action.id.indexOf('org.freedesktop.locale1.') === 0 ||
action.id.indexOf('org.freedesktop.accounts.') === 0 ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]