fix polkit rules + make libreoffice defaut to breeze dark icons
This commit is contained in:
parent
9eef8c4258
commit
6bed3b3c3f
2 changed files with 80 additions and 54 deletions
|
@ -1,70 +1,95 @@
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Allow udisks2 to mount devices without authentication
|
|
||||||
// for users in the "wheel" group.
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
|
|
||||||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
|
|
||||||
action id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
|
|
||||||
action.id == "org.freedesktop.udisks.filesystem-fstab") &&
|
|
||||||
subject.isInGroup("wheel")) {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if (action.id == "org.freedesktop.login1.power-off" ||
|
|
||||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
|
|
||||||
action.id == "org.freedesktop.login1.reboot" ||
|
|
||||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
|
||||||
action.id == "org.freedesktop.login1.hibernate" ||
|
|
||||||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
|
|
||||||
action.id == "org.freedesktop.login1.suspend" ||
|
|
||||||
action.id == "org.freedesktop.login1.suspend-multiple-sessions") {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if (action.id == "org.freedesktop.upower.hibernate" ||
|
|
||||||
action.id == "org.freedesktop.upower.suspend") {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Allow users of network group to use blueman feature requiring root without authentication */
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if ((action.id == "org.blueman.network.setup" ||
|
|
||||||
action.id == "org.blueman.dhcp.client" ||
|
|
||||||
action.id == "org.blueman.rfkill.setstate" ||
|
|
||||||
action.id == "org.blueman.pppd.pppconnect") &&
|
|
||||||
subject.isInGroup("wheel")) {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Allow members of the wheel group to execute the defined actions
|
/* Allow members of the wheel group to execute the defined actions
|
||||||
* without password authentication, similar to "sudo NOPASSWD:"
|
* without password authentication, similar to "sudo NOPASSWD:"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Allow udisks2 to mount devices without authentication
|
||||||
|
// for users in the "wheel" group.
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.archlinux.pkexec.gparted" ||
|
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 &&
|
||||||
action.id == "org.libvirt.unix.manage") &&
|
|
||||||
subject.isInGroup("wheel"))
|
subject.isInGroup("wheel"))
|
||||||
{
|
{
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
|
||||||
|
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
|
||||||
|
action id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
|
||||||
|
action.id == "org.freedesktop.udisks.filesystem-fstab") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.freedesktop.login1.power-off" ||
|
||||||
|
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
|
||||||
|
action.id == "org.freedesktop.login1.reboot" ||
|
||||||
|
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||||
|
action.id == "org.freedesktop.login1.hibernate" ||
|
||||||
|
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
|
||||||
|
action.id == "org.freedesktop.login1.suspend" ||
|
||||||
|
action.id == "org.freedesktop.login1.suspend-multiple-sessions") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.freedesktop.upower.hibernate" ||
|
||||||
|
action.id == "org.freedesktop.upower.suspend") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.blueman.network.setup" ||
|
||||||
|
action.id == "org.blueman.dhcp.client" ||
|
||||||
|
action.id == "org.blueman.rfkill.setstate" ||
|
||||||
|
action.id == "org.blueman.pppd.pppconnect") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.archlinux.pkexec.gparted" ||
|
||||||
|
action id == "org.kde.kpmcore.externalcommand.init") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.opensuse.cupspkhelper.mechanism.all-edit") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if ((action.id == "org.libvirt.unix.manage") &&
|
||||||
|
subject.isInGroup("wheel"))
|
||||||
|
{
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.corectrl.helper.init" ||
|
if ((action.id == "org.corectrl.helper.init" ||
|
||||||
action.id == "org.corectrl.helperkiller.init") &&
|
action.id == "org.corectrl.helperkiller.init") &&
|
||||||
subject.local == true &&
|
subject.isInGroup("wheel"))
|
||||||
subject.active == true &&
|
{
|
||||||
subject.isInGroup("wheel")) {
|
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="SymbolStyle" oor:op="fuse"><value>breeze_dark_svg</value></prop></item>
|
||||||
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="UseOpenCL" oor:op="fuse"><value>false</value></prop></item>
|
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="UseOpenCL" oor:op="fuse"><value>false</value></prop></item>
|
||||||
<item oor:path="/org.openoffice.Office.Common/VCL"><prop oor:name="ForceOpenGL" oor:op="fuse"><value>false</value></prop></item>
|
<item oor:path="/org.openoffice.Office.Common/VCL"><prop oor:name="ForceOpenGL" oor:op="fuse"><value>false</value></prop></item>
|
||||||
<item oor:path="/org.openoffice.Office.Common/VCL"><prop oor:name="UseOpenGL" oor:op="fuse"><value>false</value></prop></item>
|
<item oor:path="/org.openoffice.Office.Common/VCL"><prop oor:name="UseOpenGL" oor:op="fuse"><value>false</value></prop></item>
|
||||||
|
|
Loading…
Reference in a new issue