summaryrefslogtreecommitdiff
path: root/xrdp.polkit
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp.polkit')
-rw-r--r--xrdp.polkit13
1 files changed, 13 insertions, 0 deletions
diff --git a/xrdp.polkit b/xrdp.polkit
new file mode 100644
index 0000000..b4c987e
--- /dev/null
+++ b/xrdp.polkit
@@ -0,0 +1,13 @@
+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;
+});