diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-10-15 17:54:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-10-15 17:54:04 +0100 |
commit | 83867871b78c0a25c6e7c90ff8bece10afce3b93 (patch) | |
tree | 6da872da1f65a18fc386fe8170d34efe64d799cf /sys-boot/unetbootin-static | |
parent | 97f2aff61729557c98c72439432242c30e3d0a6b (diff) |
add policykit rule
Diffstat (limited to 'sys-boot/unetbootin-static')
-rw-r--r-- | sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy | 22 | ||||
-rw-r--r-- | sys-boot/unetbootin-static/unetbootin-static-625.ebuild | 2 |
2 files changed, 24 insertions, 0 deletions
diff --git a/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy b/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy new file mode 100644 index 00000000..9130ed94 --- /dev/null +++ b/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy @@ -0,0 +1,22 @@ +<?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> + + <vendor>Kogaion</vendor> + <vendor_url>http://rogentos.ro</vendor_url> + + <action id="ro.kogaion.sisyphus.pkexec.run"> + <description>Run Sisyphus</description> + <message>Authentication is required to run Unetbootin</message> + <icon_name>drive-harddisk</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/unetbootin-static-625</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> +</policyconfig> diff --git a/sys-boot/unetbootin-static/unetbootin-static-625.ebuild b/sys-boot/unetbootin-static/unetbootin-static-625.ebuild index 5e0e6e82..067dcaaf 100644 --- a/sys-boot/unetbootin-static/unetbootin-static-625.ebuild +++ b/sys-boot/unetbootin-static/unetbootin-static-625.ebuild @@ -25,4 +25,6 @@ src_install() { dodir /usr/share/applications insinto /usr/share/applications doins ${FILESDIR}/${PN}.desktop + dodir /usr/share/polkit-1/actions + doins ${FILESDIR}/ro.kogaion.${PN}.policy } |