[gnome-initial-setup/shell/4765: 64/362] Allow initial setup to switch metrics on and off



commit 0d5ba68bcd5ce3928606ad9014f3481da2128920
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.
    [endlessm/eos-sdk#1327]

 data/20-gnome-initial-setup.rules |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
index e247f28..55de207 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 === 'org.freedesktop.udisks2.filesystem-mount-system' ||
+                         action.id === 'com.endlessm.Metrics.SetEnabled' ||
                          action.id.indexOf('org.freedesktop.hostname1.') === 0 ||
                          action.id.indexOf('org.freedesktop.NetworkManager.') === 0 ||
                          action.id.indexOf('org.freedesktop.locale1.') === 0 ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]