From c7990f9bb41e9f67b3744d788fe8326dcdb17e6e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Aug 2021 21:49:07 +0200 Subject: [PATCH] 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 bff0f21..02fd21d 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) -- 2.31.1