chiark / gitweb /
polkit: autogenerate polkit policy with correct paths
[elogind.git] / src / org.freedesktop.systemd1.policy.in
similarity index 94%
rename from src/org.freedesktop.systemd1.policy
rename to src/org.freedesktop.systemd1.policy.in
index a9958c2e33a2006c067cad3d43ba075aa3413e58..b8b354726bd06012ea8a3d5cedcfb12fc27d0e72 100644 (file)
@@ -24,7 +24,7 @@
                         <allow_inactive>no</allow_inactive>
                         <allow_active>auth_admin_keep</allow_active>
                 </defaults>
-                <annotate key="org.freedesktop.policykit.exec.path">/lib/systemd/systemd-reply-password</annotate>
+                <annotate key="org.freedesktop.policykit.exec.path">@rootlibexecdir@/systemd-reply-password</annotate>
         </action>
 
         <action id="org.freedesktop.systemd1.BusAccess">
@@ -35,7 +35,7 @@
                         <allow_inactive>no</allow_inactive>
                         <allow_active>auth_admin_keep</allow_active>
                 </defaults>
-                <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/systemd-stdio-bridge</annotate>
+                <annotate key="org.freedesktop.policykit.exec.path">@bindir@/systemd-stdio-bridge</annotate>
         </action>
 
 </policyconfig>