[X2Go-User] colord fix needs update for Debian >= 12 / polkit >= 120

Philipp Huebner debalance at debian.org
Tue Aug 15 13:36:29 CEST 2023


Hi all,

on Debian 12 I was getting that annoying color-manager polkit 
authentication window again.

Turns out, the file
/etc/polkit-1/localauthority/10-vendor.d/x2goserver-no-colord.pkla
installed by x2goserver no longer has any effect because that backend is 
obsolete in polkit >= 120 or so.

I ported the original rule to /etc/polkit-1/rules.d/color-manager.rules 
with the following content:


polkit.addRule(function(action, subject) {
         if (action.id.match("org.freedesktop.color-manager") &&
	    subject.local == false ) {
                 polkit.log("action=" + action);
                 polkit.log("subject=" + subject);
                 polkit.log("action '" + action.id + "' denied!");
                 return polkit.Result.NO;
         }
});


That solved the issue for me.

Supposedly one can also install the package polkitd-pkla to get back 
support for the old file, but I have not tried that approach.

Best wishes
-- 
  .''`.   Philipp Huebner <debalance at debian.org>
: :'  :  pgp fp: 6719 25C5 B8CD E74A 5225  3DF9 E5CA 8C49 25E4 205F
`. `'`
   `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE5CA8C4925E4205F.asc
Type: application/pgp-keys
Size: 27794 bytes
Desc: OpenPGP public key
URL: <https://lists.x2go.org/pipermail/x2go-user/attachments/20230815/366e9828/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x2go.org/pipermail/x2go-user/attachments/20230815/366e9828/attachment-0001.sig>


More information about the x2go-user mailing list