| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE policyconfig PUBLIC |
| 3 | "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" |
| 4 | "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> |
| 5 | <!-- |
| 6 | Polkit policy for Reasonix desktop in-app .deb upgrades. |
| 7 | The action only authorizes the fixed root-owned helper with argv1=install. |
| 8 | Active sessions require auth_admin every time; authorization is not retained. |
| 9 | --> |
| 10 | <policyconfig> |
| 11 | <vendor>Reasonix</vendor> |
| 12 | <vendor_url>https://reasonix.io</vendor_url> |
| 13 | |
| 14 | <action id="io.reasonix.desktop.update"> |
| 15 | <description gettext-domain="reasonix-desktop">Install a Reasonix desktop update</description> |
| 16 | <description xml:lang="zh_CN" gettext-domain="reasonix-desktop">安装 Reasonix 桌面端更新</description> |
| 17 | <description xml:lang="zh_TW" gettext-domain="reasonix-desktop">安裝 Reasonix 桌面端更新</description> |
| 18 | <message gettext-domain="reasonix-desktop">Authentication is required to install a Reasonix update</message> |
| 19 | <message xml:lang="zh_CN" gettext-domain="reasonix-desktop">安装 Reasonix 更新需要管理员授权</message> |
| 20 | <message xml:lang="zh_TW" gettext-domain="reasonix-desktop">安裝 Reasonix 更新需要管理員授權</message> |
| 21 | <defaults> |
| 22 | <allow_any>no</allow_any> |
| 23 | <allow_inactive>no</allow_inactive> |
| 24 | <allow_active>auth_admin</allow_active> |
| 25 | </defaults> |
| 26 | <annotate key="org.freedesktop.policykit.exec.path">/usr/lib/reasonix/reasonix-update-helper</annotate> |
| 27 | <annotate key="org.freedesktop.policykit.exec.argv1">install</annotate> |
| 28 | </action> |
| 29 | </policyconfig> |
| 30 |