Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Cria um dispositivo gerenciado de cores

## Explantion:
## Ia a security policy
## Policy file (on ubuntu 20.04):
## /usr/share/polkit-1/actions/org.freedesktop.color.policy

# Create pkla file
sudo nano /etc/polkit-1/localauthority/50-local.d/create-device-tf2.pkla

# Add folow content
[Allow Color Manager]
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;org.freedesktop.color-manager.install-system-wide;org.freedesktop.color-manager.device-inhibit;org.freedesktop.color-manager.sensor-lock
ResultAny=yes
ResultInactive=yes
ResultActive=yes
 
PREVIOUS NEXT
Tagged: #Cria #um #dispositivo #gerenciado #de #cores
ADD COMMENT
Topic
Name
8+2 =