Pkexec

Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2014-07-16 06:30:27
Size: 2811
Editor: host109-152-94-31
Comment:
Revision 6 as of 2014-07-16 20:21:57
Size: 410
Editor: host109-152-94-31
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
|| xfce4-terminal || DONE ||
|| mousepad || DONE ||
|| xfce4-terminal ||DONE ||
|| mousepad ||DONE||
Line 9: Line 9:
'''Thunar''' [[attachment:Thunar]]
Line 11: Line 11:
<?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>
[[attachment:xfce4-term]]
Line 17: Line 13:
  <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>
[[attachment:Mousepad]]

List of applications that will need policy files for pkexec

Application

Status

Thunar

DONE

xfce4-terminal

DONE

mousepad

DONE

Thunar

xfce4-term

Mousepad

Xubuntu/Roadmap/Specifications/Utopic/Pkexec (last edited 2014-07-21 14:21:14 by host109-152-94-31)