summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Makefile.drakxtools2
-rw-r--r--perl-install/standalone/polkit/org.mageia.drakautologin.policy.in22
2 files changed, 23 insertions, 1 deletions
diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools
index 1ef2bf6d1..7f6252aba 100644
--- a/perl-install/Makefile.drakxtools
+++ b/perl-install/Makefile.drakxtools
@@ -44,7 +44,7 @@ install:
mv -f $(SBINDEST)/display_release_notes.pl $(BINDEST)
mv -f $(SBINDEST)/localedrake $(BINDEST)
# All the things handled by polkit
- mv -f $(SBINDEST)/drak{auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST)
+ mv -f $(SBINDEST)/drak{autologin,auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST)
mv -f $(SBINDEST)/logdrake $(LIBEXECDEST)/draklog
mv -f $(SBINDEST)/drakedm $(LIBEXECDEST)/drakdm
mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk
diff --git a/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in b/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in
new file mode 100644
index 000000000..161e456ef
--- /dev/null
+++ b/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in
@@ -0,0 +1,22 @@
+<?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>
+
+ <vendor>Mageia</vendor>
+ <vendor_url>http://www.mageia.org/</vendor_url>
+
+ <action id="org.mageia.drakautologin.pkexec.run">
+ <_description>Run Mageia AutoLogin Configuration</_description>
+ <_message>Authentication is required to run Mageia AutoLogin Configuration</_message>
+ <icon_name>drakconf</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/libexec/drakautologin</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>