From 7e7f65a92849ed42ad806bf1b60770b0d32d05b8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 9 Apr 2025 15:53:08 +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