diff options
author | Will Thompson <wjt@endlessm.com> | 2020-06-26 15:06:12 +0100 |
---|---|---|
committer | Will Thompson <wjt@endlessm.com> | 2020-06-26 15:06:12 +0100 |
commit | 305067760d2aed57f271d8623ae5980017fe3a02 (patch) | |
tree | 9abe16b27c65d6be5756cf1a21fdd92ba804ab4d /data | |
parent | 1d05fb8a082bced7da5944a908a5749dfd5203ca (diff) | |
download | gnome-initial-setup-305067760d2aed57f271d8623ae5980017fe3a02.tar.gz |
polkit: drop some unneeded actions
Both `org.freedesktop.udisks2.filesystem-mount-system` and
`org.freedesktop.RealtimeKit1.*` have been here since this file was
introduced in 2c1bf13ab27a17509890a15bc6de13fe54816c0c, with the
following note in the commit message:
> The .rules was ported from the associated .pkla file from gdm as well.
I can't actually find a `.pkla` file in gdm's history, although I
haven't looked very hard. These actions are not used by
gnome-initial-setup today; remove them.
Closes #75
Diffstat (limited to 'data')
-rw-r--r-- | data/20-gnome-initial-setup.rules | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules index 514aa8a..33d7e30 100644 --- a/data/20-gnome-initial-setup.rules +++ b/data/20-gnome-initial-setup.rules @@ -9,14 +9,12 @@ polkit.addRule(function(action, subject) { if (subject.user !== 'gnome-initial-setup') return undefined; - var actionMatches = (action.id === 'org.freedesktop.udisks2.filesystem-mount-system' || - action.id.indexOf('org.freedesktop.hostname1.') === 0 || + var actionMatches = (action.id.indexOf('org.freedesktop.hostname1.') === 0 || action.id.indexOf('org.freedesktop.NetworkManager.') === 0 || action.id.indexOf('org.freedesktop.locale1.') === 0 || action.id.indexOf('org.freedesktop.accounts.') === 0 || action.id.indexOf('org.freedesktop.timedate1.') === 0 || action.id.indexOf('org.freedesktop.realmd.') === 0 || - action.id.indexOf('org.freedesktop.RealtimeKit1.') === 0 || action.id.indexOf('com.endlessm.ParentalControls.') === 0); if (actionMatches) { |