diff options
author | Ryan Gonzalez <rymg19@gmail.com> | 2018-05-14 15:53:42 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-05-17 00:23:18 +0300 |
commit | 559286a0daa87056594a9dcbc8540f5a7bf6f8f8 (patch) | |
tree | f9618532572d1f2d186dfed574a0f612a28554ca /data | |
parent | 8a9f7cf1332a0be9b2e90d39483c6aa7c67fffee (diff) | |
download | meson-559286a0daa87056594a9dcbc8540f5a7bf6f8f8.zip meson-559286a0daa87056594a9dcbc8540f5a7bf6f8f8.tar.gz meson-559286a0daa87056594a9dcbc8540f5a7bf6f8f8.tar.bz2 |
Support installation via polkit
Diffstat (limited to 'data')
-rw-r--r-- | data/com.mesonbuild.install.policy | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/data/com.mesonbuild.install.policy b/data/com.mesonbuild.install.policy new file mode 100644 index 0000000..9a00de2 --- /dev/null +++ b/data/com.mesonbuild.install.policy @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD polkit Policy Configuration 1.0//EN" +"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd"> +<policyconfig> + + <vendor>The Meson Build System</vendor> + <vendor_url>https://github.com/mesonbuild/meson</vendor_url> + + <action id="com.mesonbuild.install.run"> + <description>Install the given project via Meson</description> + <message>Authentication is required to install this project</message> + <icon_name>preferences-system</icon_name> + <defaults> + <allow_any>no</allow_any> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/python3</annotate> + <annotate key="org.freedesktop.policykit.exec.argv1">/usr/bin/meson</annotate> + <annotate key="org.freedesktop.policykit.exec.argv2">--internal</annotate> + <annotate key="org.freedesktop.policykit.exec.argv3">install</annotate> + </action> + +</policyconfig> |