Skip to content

Instantly share code, notes, and snippets.

@tuhinpal
Created February 21, 2021 11:50
Show Gist options
  • Save tuhinpal/5687dcc5b14e235bde527c363980ba85 to your computer and use it in GitHub Desktop.
Save tuhinpal/5687dcc5b14e235bde527c363980ba85 to your computer and use it in GitHub Desktop.
polkit configuration
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”) && subject.isInGroup(“{group}”))
{
return polkit.Result.YES;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment