diff --git a/49-aeon.rules b/49-aeon.rules new file mode 100644 index 0000000..1c48165 --- /dev/null +++ b/49-aeon.rules @@ -0,0 +1,3 @@ +polkit.addAdminRule(function(action, subject) { + return ["unix-group:wheel"]; +}); diff --git a/gnome-branding-Aeon.spec b/gnome-branding-Aeon.spec index 4dfe181..092a5cb 100644 --- a/gnome-branding-Aeon.spec +++ b/gnome-branding-Aeon.spec @@ -33,6 +33,7 @@ Source7: distrobox-upgrade-all.service Source8: distrobox-upgrade-all.timer Source9: 50-aeon Source10: wallpaper-branding-Aeon.xml +Source11: 49-aeon.rules BuildArch: noarch BuildRequires: flatpak BuildRequires: gio-branding-openSUSE @@ -65,6 +66,7 @@ cp -a %{SOURCE7} distrobox-upgrade-all.service cp -a %{SOURCE8} distrobox-upgrade-all.timer cp -a %{SOURCE9} 50-aeon cp -a %{SOURCE10} wallpaper-branding-Aeon.xml +cp -a %{SOURCE11} 49-aeon.rules %build @@ -88,6 +90,8 @@ install -d %{buildroot}%{_sysconfdir}/sudoers.d/ install -m0644 50-aeon %{buildroot}%{_sysconfdir}/sudoers.d/50-aeon install -d %{buildroot}%{_datadir}/gnome-background-properties install -m0644 wallpaper-branding-Aeon.xml %{buildroot}%{_datadir}/gnome-background-properties/wallpaper-branding-Aeon.xml +install -d %{buildroot}%{_datadir}/polkit-1/rules.d/ +install -m0644 49-aeon.rules %{buildroot}%{_datadir}/polkit-1/rules.d/49-aeon.rules %pre %systemd_user_pre distrobox-upgrade-all.service @@ -122,5 +126,7 @@ install -m0644 wallpaper-branding-Aeon.xml %{buildroot}%{_datadir}/gnome-backgro %{_sysconfdir}/sudoers.d/50-aeon %dir %{_datadir}/gnome-background-properties %{_datadir}/gnome-background-properties/wallpaper-branding-Aeon.xml +%dir %{_datadir}/polkit-1/rules.d +%{_datadir}/polkit-1/rules.d/49-aeon.rules %changelog