Trying to connect to tigervnc server running on Ubuntu 18.04 (using TigerVNC viewer windows client). After the initial authentication, I get an additional authentication prompt that reads "Authentication is required to create a color pr...". This happens only for the first login following a tigervnc server restart. Is there anyway I can bypass this?
I fixed this by creating this file and setting perms to 644, and owner root:root:
Filename: /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
Contents:
Let me just extract the concrete fix for 18.04 only from the sequel to this excellent blog post. The latter drills down to the root cause of this issue; the former fixes it properly — while avoiding a crash caused by the
return polkit.Result.YES;
solution already posted here and elsewhere.This is relevant only for PolKit < 0.106 (
pkaction --version
).For PolKit 0.106+ (Ubuntu 18.10+) this authorization is granted differently, via the javascript .conf file: