diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2014-11-01 22:13:18 +0300 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2014-11-01 20:20:02 +0100 |
commit | 8eeed6ba6ed0b1efa2b2b05c0b108da816763069 (patch) | |
tree | 840e19d74f38ce34e4d9f953e55b68fbd525eda7 /Makefile.am | |
parent | 94ccaf3073a22dcc0d875bd9b89cb1cac848d19b (diff) | |
download | thunar-8eeed6ba6ed0b1efa2b2b05c0b108da816763069.tar.gz |
Add pkexec policy (Bug #11122)
This adds a pkexec policy file to Thunar. This way if the user
of a desktop system wants to use thunar to modify files as root
and has the proper credentials they can.
pkexec comes from polkit which does about the same thing as
sudo/gksu except also supports authentication methods like
fingerprint or smart card readers.
Signed-off-by: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 0cb69b4c..13b991e3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -82,6 +82,15 @@ service_DATA = $(service_in_files:.service.in=.service) $(AM_V_GEN) $(SED) -e "s,\@bindir\@,$(bindir),g" < $< > $@ endif +polkit_policydir = $(datadir)/polkit-1/actions +polkit_in_in_files = \ + org.xfce.thunar.policy.in.in +polkit_in_files = $(polkit_in_in_files:.policy.in.in=.policy.in) +%.policy.in: %.policy.in.in + sed -e "s,\@bindir\@,$(bindir),g" < $< > $@ +polkit_policy_DATA = $(polkit_in_files:.policy.in=.policy) +@INTLTOOL_POLICY_RULE@ + EXTRA_DIST = \ FAQ \ HACKING \ @@ -91,7 +100,8 @@ EXTRA_DIST = \ intltool-update.in \ $(desktop_in_in_files) \ $(service_in_files) \ - $(appdata_in_files) + $(appdata_in_files) \ + $(polkit_in_in_files) CLEANFILES = $(appdata_DATA) @@ -102,7 +112,9 @@ DISTCLEANFILES = \ intltool-update \ $(desktop_in_files) \ $(desktop_DATA) \ - $(service_DATA) + $(service_DATA) \ + $(polkit_in_files) \ + $(polkit_policy_DATA) DISTCHECK_CONFIGURE_FLAGS = \ --enable-gtk-doc \ |