xrdp-next/xrdp-polkit-1.rules
Bojan Smojver ca00d54484 README.Fedora: VSOCK support.
README.Fedora: possibly incorrect SELinux context of the session.
Add polkit-1 rules for colord access and repo refresh.
2020-01-30 05:55:40 +11:00

15 lines
670 B
Plaintext

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.color-manager.create-device" ||
action.id == "org.freedesktop.color-manager.create-profile"||
action.id == "org.freedesktop.color-manager.delete-device" ||
action.id == "org.freedesktop.color-manager.delete-profile" ||
action.id == "org.freedesktop.color-manager.modify-device" ||
action.id == "org.freedesktop.color-manager.modify-profile" ||
action.id == "org.freedesktop.packagekit.system-sources-refresh") &&
subject.active == true) {
return polkit.Result.YES;
}
return polkit.Result.NOT_HANDLED;
});