diff options
Diffstat (limited to 'policy')
-rw-r--r-- | policy/Makefile.am | 11 | ||||
-rw-r--r-- | policy/org.mate.power.policy.in2 | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am index 4bab7f4..1f3343f 100644 --- a/policy/Makefile.am +++ b/policy/Makefile.am @@ -1,16 +1,15 @@ polkit_policydir = $(datadir)/polkit-1/actions -polkit_policy_DATA = \ - org.mate.power.policy +polkit_policy_in_files = org.mate.power.policy.in +polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy) -# You will need a recent intltool or the patch from this bug -# http://bugzilla.gnome.org/show_bug.cgi?id=462312 -@INTLTOOL_POLICY_RULE@ +$(polkit_policy_DATA): $(polkit_policy_in_files) + $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ .in2.in: sed "s|[@]sbindir@|${sbindir}|" $< > $@ EXTRA_DIST = org.mate.power.policy.in2 -DISTCLEANFILES = org.mate.power.policy org.mate.power.policy.in +DISTCLEANFILES = $(polkit_policy_DATA) $(polkit_policy_in_files) clean-local : rm -f *~ diff --git a/policy/org.mate.power.policy.in2 b/policy/org.mate.power.policy.in2 index 61bbd6e..06d6428 100644 --- a/policy/org.mate.power.policy.in2 +++ b/policy/org.mate.power.policy.in2 @@ -18,8 +18,8 @@ - A normal active user on the local machine does not need permission to change the backlight brightness. --> - <_description>Modify the laptop brightness</_description> - <_message>Authentication is required to modify the laptop brightness</_message> + <description>Modify the laptop brightness</description> + <message>Authentication is required to modify the laptop brightness</message> <defaults> <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> |