Pkexec

Differences between revisions 1 and 2
Revision 1 as of 2014-07-15 22:17:17
Size: 308
Editor: ochosi
Comment:
Revision 2 as of 2014-07-16 06:30:27
Size: 2811
Editor: elfy
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
|| Thunar || TODO ||
|| xfce4-terminal || TODO ||
|| Thunar || DONE ||
|| xfce4-terminal || DONE ||
|| mousepad || DONE ||

'''Thunar'''

<?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/policyconfig.dtd">
<policyconfig>

  <action id="com.ubuntu.pkexec.thunar">
    <message gettext-domain="thunar">Authentication is required to run thunar as root</message>
    <icon_name>system-file-manager</icon_name>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/thunar</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>


'''Mousepad'''
<?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/policyconfig.dtd">
<policyconfig>

  <action id="com.ubuntu.pkexec.mousepad">
    <message gettext-domain="mousepad">Authentication is required to run mousepad as root</message>
    <icon_name>Text Editor</icon_name>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mousepad</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

'''xfce4-terminal'''
<?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>xfce4-terminal</vendor>
  <vendor_url>xfce4-terminal</vendor_url>
  <icon_name>terminal</icon_name>
  <action id="org.freedesktop.policykit.pkexec.xfce4-terminal">
   <description>Run "xfce4-terminal"</description>
   <message>Authentication is required to run xfce4-terminal</message>
   <defaults>
     <allow_any>auth_admin</allow_any>
     <allow_inactive>auth_admin</allow_inactive>
     <allow_active>auth_admin</allow_active>
   </defaults>
     <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/xfce4-terminal</annotate>
     <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
   </action>
</policyconfig>

List of applications that will need policy files for pkexec

Application

Status

Thunar

DONE

xfce4-terminal

DONE

mousepad

DONE

Thunar

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC

<policyconfig>

  • <action id="com.ubuntu.pkexec.thunar">

    • <message gettext-domain="thunar">Authentication is required to run thunar as root</message> <icon_name>system-file-manager</icon_name> <defaults>

      • <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active>

      </defaults> <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/thunar</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>

    </action>

</policyconfig>

Mousepad <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC

<policyconfig>

  • <action id="com.ubuntu.pkexec.mousepad">

    • <message gettext-domain="mousepad">Authentication is required to run mousepad as root</message> <icon_name>Text Editor</icon_name> <defaults>

      • <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active>

      </defaults> <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mousepad</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>

    </action>

</policyconfig>

xfce4-terminal <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC

<policyconfig>

  • <vendor>xfce4-terminal</vendor> <vendor_url>xfce4-terminal</vendor_url> <icon_name>terminal</icon_name> <action id="org.freedesktop.policykit.pkexec.xfce4-terminal">

    • <description>Run "xfce4-terminal"</description> <message>Authentication is required to run xfce4-terminal</message> <defaults>

      • <allow_any>auth_admin</allow_any> <allow_inactive>auth_admin</allow_inactive> <allow_active>auth_admin</allow_active>

      </defaults>

      • <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/xfce4-terminal</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>

      </action>

</policyconfig>

Xubuntu/Roadmap/Specifications/Utopic/Pkexec (last edited 2014-07-21 14:21:14 by elfy)