From 729acc70fe8f7833c54277ab6bf8105a9bc115d3 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 14 Aug 2023 08:37:09 +0000 Subject: automatic import of xrdp --- xrdp.polkit | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 xrdp.polkit (limited to 'xrdp.polkit') 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; +}); -- cgit v1.2.3