summarylogtreecommitdiffstats
path: root/spack.pkaction
diff options
context:
space:
mode:
Diffstat (limited to 'spack.pkaction')
-rw-r--r--spack.pkaction18
1 files changed, 18 insertions, 0 deletions
diff --git a/spack.pkaction b/spack.pkaction
new file mode 100644
index 000000000000..e6ef88d6b7ea
--- /dev/null
+++ b/spack.pkaction
@@ -0,0 +1,18 @@
+<?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="org.archlinux.pkexec.spack">
+ <message>Authentication is required to run spack</message>
+ <icon_name>spack</icon_name>
+ <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">/opt/spack/libexec/spack</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>
+