specs/amd64/livegui: add polkit exceptions for partition tools
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
parent
d4b8aa1f3c
commit
05d3853edc
1 changed files with 13 additions and 0 deletions
|
@ -48,3 +48,16 @@ wget "https://dev.gentoo.org/~bkohler/livegui/face.icon.png" -O .face.icon
|
|||
popd
|
||||
# Clean up perms
|
||||
chown -R gentoo:users /home/gentoo
|
||||
|
||||
# Let some tools run as root
|
||||
echo "polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.gnome.gparted") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.kde.kpmcore.externalcommand.init") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});" > /etc/polkit-1/rules.d/livegui-root-tools.rules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue