[debian-edu-commits] debian-edu/ 29/32: Desktop integration: Use pkexec to launch iTALC Management Console.

Mike Gabriel sunweaver at debian.org
Mon Aug 18 15:09:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to annotated tag debian/1_2.0.2+dfsg1-1
in repository italc.

commit 47d49879dc58c6b9e277e7eca0864ee1c2e96858
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Aug 15 18:50:03 2014 +0200

    Desktop integration: Use pkexec to launch iTALC Management Console.
---
 debian/bin/imc-pkexec                           |  2 ++
 debian/desktop/italc-management-console.desktop |  2 +-
 debian/italc-management-console.install         |  4 +++-
 debian/italc-management-console.links           |  3 ++-
 debian/org.debian.pkexec.imc.policy             | 19 +++++++++++++++++++
 5 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/debian/bin/imc-pkexec b/debian/bin/imc-pkexec
new file mode 100755
index 0000000..4f5c8ff
--- /dev/null
+++ b/debian/bin/imc-pkexec
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkexec "/usr/bin/imc" "$@"
diff --git a/debian/desktop/italc-management-console.desktop b/debian/desktop/italc-management-console.desktop
index 3698269..f8f65be 100644
--- a/debian/desktop/italc-management-console.desktop
+++ b/debian/desktop/italc-management-console.desktop
@@ -1,7 +1,7 @@
 [Desktop Entry]
 Name=iTALC Management Console
 Comment=Administrate your iTALC installation
-Exec=imc
+Exec=imc-pkexec
 Icon=italc
 Type=Application
 Terminal=false
diff --git a/debian/italc-management-console.install b/debian/italc-management-console.install
index 2fc27bc..0cef6bc 100644
--- a/debian/italc-management-console.install
+++ b/debian/italc-management-console.install
@@ -1,2 +1,4 @@
 usr/bin/imc
-../../debian/desktop/italc-management-console.desktop /usr/share/applications/
\ No newline at end of file
+../../debian/desktop/italc-management-console.desktop /usr/share/applications/
+../../debian/bin/imc-pkexec /usr/bin/
+../../debian/org.debian.pkexec.imc.policy /usr/share/polkit-1/actions/
diff --git a/debian/italc-management-console.links b/debian/italc-management-console.links
index e89efa9..a9a32cf 100644
--- a/debian/italc-management-console.links
+++ b/debian/italc-management-console.links
@@ -1 +1,2 @@
-usr/share/doc/libitalccore/README.setup.gz usr/share/doc/italc-management-console/README.setup.gz
\ No newline at end of file
+usr/share/doc/libitalccore/README.setup.gz usr/share/doc/italc-management-console/README.setup.gz
+usr/share/man/man1/imc.1.gz usr/share/man/man1/imc-pkexec.1.gz
\ No newline at end of file
diff --git a/debian/org.debian.pkexec.imc.policy b/debian/org.debian.pkexec.imc.policy
new file mode 100644
index 0000000..6b91e16
--- /dev/null
+++ b/debian/org.debian.pkexec.imc.policy
@@ -0,0 +1,19 @@
+<?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>
+
+  <action id="org.debian.pkexec.imc">
+    <message>Authentication is required to run the iTALC Management Console</message>
+    <icon_name>italc</icon_name>
+    <defaults>
+      <allow_any>auth_admin</allow_any>
+      <allow_inactive>auth_admin</allow_inactive>
+      <allow_active>auth_admin</allow_active>
+    </defaults>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/imc</annotate>
+    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+  </action>
+
+</policyconfig>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/italc.git



More information about the debian-edu-commits mailing list