Skip to content

Instantly share code, notes, and snippets.

@secure-77
Created March 21, 2020 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secure-77/1bcfa23c3b12f9b44aac82f1f6f2c543 to your computer and use it in GitHub Desktop.
Save secure-77/1bcfa23c3b12f9b44aac82f1f6f2c543 to your computer and use it in GitHub Desktop.
Kalilinux xrdp polkit fix
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("vglusers")) {
return polkit.Result.YES;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment