33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?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">
|
|
<!--
|
|
FWS — autorise « Pilotes et matériel » (fws-drivers, lancée en utilisateur)
|
|
à exécuter le MOTEUR fws-setup-hardware via pkexec.
|
|
|
|
POURQUOI : sans ça il fallait ouvrir un terminal et y lancer sudo. Une
|
|
utilisatrice débutante a décrit l'expérience comme « flippante » — un écran
|
|
noir qui défile, sans rien pour dire que tout va bien. Avec polkit elle voit
|
|
une simple demande de mot de passe, puis la progression dans la fenêtre.
|
|
|
|
auth_admin_keep : le mot de passe n'est demandé qu'une fois (mémorisé
|
|
quelques minutes), pas à chaque groupe installé.
|
|
-->
|
|
<policyconfig>
|
|
<vendor>FWS</vendor>
|
|
<action id="org.fws.hardware">
|
|
<!-- fws-i18n: polkit.hardware -->
|
|
<!-- The translations are added at build time from system-translations.toml. -->
|
|
<description>Install drivers and set up hardware</description>
|
|
<message>Authentication is required to install drivers</message>
|
|
<icon_name>preferences-desktop-display</icon_name>
|
|
<defaults>
|
|
<allow_any>auth_admin_keep</allow_any>
|
|
<allow_inactive>auth_admin_keep</allow_inactive>
|
|
<allow_active>auth_admin_keep</allow_active>
|
|
</defaults>
|
|
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/fws-setup-hardware</annotate>
|
|
</action>
|
|
</policyconfig>
|