[gnome-initial-setup/wip/kalev/fedora-third-party-pk-rules] Fix the polkit rule for Fedora third party setup




commit c7990f9bb41e9f67b3744d788fe8326dcdb17e6e
Author: Kalev Lember <klember redhat com>
Date:   Tue Aug 24 21:49:07 2021 +0200

    Fix the polkit rule for Fedora third party setup
    
    It turns out we need to match org.fedoraproject.thirdparty.run as the
    fedora-third-party script is annotated that way.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1996901

 data/20-gnome-initial-setup.rules.in | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/data/20-gnome-initial-setup.rules.in b/data/20-gnome-initial-setup.rules.in
index bff0f211..02fd21d0 100644
--- a/data/20-gnome-initial-setup.rules.in
+++ b/data/20-gnome-initial-setup.rules.in
@@ -15,13 +15,8 @@ polkit.addRule(function(action, subject) {
                          action.id.indexOf('org.freedesktop.accounts.') === 0 ||
                          action.id.indexOf('org.freedesktop.timedate1.') === 0 ||
                          action.id.indexOf('org.freedesktop.realmd.') === 0 ||
-                         action.id.indexOf('com.endlessm.ParentalControls.') === 0);
-
-    // For the Software page. Feel free to add rules for your distro here.
-    if (action.id === 'org.freedesktop.policykit.exec' &&
-            action.lookup('program') === '@bindir@/fedora-third-party') {
-        actionMatches = true;
-    }
+                         action.id.indexOf('com.endlessm.ParentalControls.') === 0 ||
+                         action.id.indexOf('org.fedoraproject.thirdparty.') === 0);
 
     if (actionMatches) {
         if (subject.local)


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