ca00d54484
README.Fedora: possibly incorrect SELinux context of the session. Add polkit-1 rules for colord access and repo refresh.
15 lines
670 B
Plaintext
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;
|
|
});
|