aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/desktop/manaproxy.desktop8
-rw-r--r--extras/polkit/org.mageia.manaproxy.policy21
-rwxr-xr-xscripts/manaproxy (renamed from scripts/proxymanager)0
3 files changed, 29 insertions, 0 deletions
diff --git a/extras/desktop/manaproxy.desktop b/extras/desktop/manaproxy.desktop
new file mode 100644
index 00000000..f4c59048
--- /dev/null
+++ b/extras/desktop/manaproxy.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=manaproxy
+Comment=AdminPanel proxy manager
+Exec=pkexec /usr/bin/manauser
+Icon=drakproxy-mdk
+Type=Application
+StartupNotify=true
+Categories=System;X-MandrivaLinux-CrossDesktop;
diff --git a/extras/polkit/org.mageia.manaproxy.policy b/extras/polkit/org.mageia.manaproxy.policy
new file mode 100644
index 00000000..5c3ede9a
--- /dev/null
+++ b/extras/polkit/org.mageia.manaproxy.policy
@@ -0,0 +1,21 @@
+<?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.Org</vendor>
+ <vendor_url>http://www.mageia.org</vendor_url>
+
+ <action id="org.mageia.manaproxy.pkexec.run">
+ <description>Allow APanel GUI</description>
+ <message>Authentication is required to run the program manaproxy (user=$(user), program=$(program), command_line=$(command_line))</message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>auth_admin</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/manaproxy</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>
diff --git a/scripts/proxymanager b/scripts/manaproxy
index 05ea4eb4..05ea4eb4 100755
--- a/scripts/proxymanager
+++ b/scripts/manaproxy