diff --git a/ubuntu/16.04/install.sh b/ubuntu/16.04/install.sh index 9b7c045..72c399e 100644 --- a/ubuntu/16.04/install.sh +++ b/ubuntu/16.04/install.sh @@ -83,21 +83,20 @@ systemctl enable xrdp.service systemctl enable xrdp-sesman.service # Configure the policy xrdp session -bash -c 'cat > /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf <&2 + exit 1 +fi -polkit.addRule(function(action, subject) { - if ((action.id == "org.freedesktop.color-manager.create-device" || - action.id == "org.freedesktop.color-manager.modify-profile" || - action.id == "org.freedesktop.color-manager.delete-device" || - action.id == "org.freedesktop.color-manager.create-profile" || - action.id == "org.freedesktop.color-manager.modify-profile" || - action.id == "org.freedesktop.color-manager.delete-profile") && - subject.isInGroup("users")) - { - return polkit.Result.YES; - } -}); -EOF' +cat > /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla <