-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.ubuntu.screen-resolution-extra.policy.in
34 lines (29 loc) · 1.51 KB
/
com.ubuntu.screen-resolution-extra.policy.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>Nvidia Settings</vendor>
<vendor_url>https://wiki.ubuntu.com/NvidiaSettings</vendor_url>
<icon_name>nvidia-settings</icon_name>
<action id="com.ubuntu.screen-resolution-extra.root-display">
<description gettext-domain="screen-resolution-extra">Save Display Configuration</description>
<message gettext-domain="screen-resolution-extra">Authentication is required to save the current display configuration</message>
<annotate key="org.freedesktop.policykit.exec.path">/usr/share/screen-resolution-extra/nvidia-polkit</annotate>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
</action>
<action id="com.ubuntu.screen-resolution-extra.root-prime">
<description gettext-domain="screen-resolution-extra">Enable or disable the NVIDIA GPU with PRIME</description>
<message gettext-domain="screen-resolution-extra">Authentication is required to save the current PRIME configuration</message>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/prime-select</annotate>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
</action>
</policyconfig>