Turn off the dialog that appears when you enter Linux with Remote Desktop

Background

Last time, I wrote an article Install Chrome Remote Desktop on Linux. However, as it is, every time

--Authentication required to create a color profile --Authentication required to create a color managed device

I often get messages like ... The most troublesome thing was that after returning to the screen saver, these dialogs appeared, so even though I entered the password, it did not disappear. The only way was to log back in, and I had to find a solution.

Countermeasures

Change Polkit settings. See the reference link for what Polkit itself is. In the following, the file is 45-allow-colord.pkla, but if the extension is .pkla, there seems to be no rule in the file name. However, considering the time of making another rule with Polkit, it would be nice if the name expresses the content concisely.

$ sudo vi /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla

Create a new one and enter as follows. Contents that allow all users to update color management and package management (repository system).

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

[Allow Package Management all Users]
Identity=unix-user:*
Action=org.debian.apt.*;io.snapcraft.*;org.freedesktop.packagekit.*;com.ubuntu.update-notifier.*
ResultAny=no
ResultInactive=no
ResultActive=yes

important point

The above settings seem to be valid up to Polkit version 0.105. Polkit version 0.106 or later creates a .conf file, and the format seems to be different. You can check the version of Polkit with the following command. Ubuntu 20.04 was 0.105.

$ pkaction --version

reference

I referred to the following site. The version of Ubuntu is different, but I could erase it in the same way in 20.04. Connect to Ubuntu 19.04 with Microsoft Remote Desktop on Android

What is Polkit in the first place? Polkit - ArchWiki

Recommended Posts

Turn off the dialog that appears when you enter Linux with Remote Desktop
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
Connect to GNU / Linux with Remote Desktop
When I crawl the webapi that appears during rendering, it was played with CORS
When you access the web server, L Chika with Arduino
[Golang] A program that determines the turn with random numbers
How to solve the problem that time goes wrong every time you turn on the power in Linux