[debian-edu-commits] debian-edu/ 01/04: add two files that were uploaded with last release of this package, but forgotten to commit to the packaging Vcs

Mike Gabriel sunweaver at debian.org
Sun Oct 5 22:41:20 UTC 2014


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

sunweaver pushed a commit to branch master
in repository italc.

commit c40ecd8962d79ac9ad0ad9ce7fa110619af179ed
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Oct 5 16:23:20 2014 +0200

    add two files that were uploaded with last release of this package, but forgotten to commit to the packaging Vcs
---
 debian/bin/ica                                | 64 +++++++++++++++++++++++++++
 debian/desktop/italc-client-autostart.desktop | 10 +++++
 2 files changed, 74 insertions(+)

diff --git a/debian/bin/ica b/debian/bin/ica
new file mode 100755
index 0000000..83dd25f
--- /dev/null
+++ b/debian/bin/ica
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+if [ -e /etc/italc/keys/public/ ]; then
+
+	ITALC_STUDENT_GROUP=`stat -c %G /etc/italc/keys/public/`
+
+	MSG="
+iTALC Client Applet
+
+You are not allowed to launch iTALC's client applet.
+
+Ask your system administrator to add your account to
+POSIX group \"$ITALC_STUDENT_GROUP\".
+
+Exiting...
+"
+
+else
+	MSG="
+iTALC Client Applet
+
+The iTALC setup has not been complete, yet. Read
+
+  /usr/share/doc/italc-client/README.setup.gz
+
+or execute
+
+  sudo dpkg-reconfigure italc-client
+
+Exiting...
+"
+fi
+
+# if -autostart is given as first cmdline option, we
+# will not display any GUI error messages...
+if [ "x$1" = "x-autostart" ]; then
+	shift
+	AUTOSTART="true"
+fi
+
+if test -x /etc/italc/keys/public; then
+	/usr/lib/italc/ica "$@" &
+else
+
+	if [ -z "$DISPLAY" ]; then
+		# No Display set...
+		echo
+		echo "iTALC Client Applet"
+		echo "-------------------"
+		echo "No \$DISPLAY environment variable set. Cannot launch iTALC Client Applet."
+		echo
+		echo "Exiting..."
+		echo
+	elif type kdialog 1>/dev/null && [ "x$AUTOSTART" != "xtrue" ]; then
+		kdialog --title "iTALC Client" --error "$MSG"
+	elif type zenity 1>/dev/null && [ "x$AUTOSTART" != "xtrue" ]; then
+		zenity --title "iTALC Client" --error --text "$MSG"
+	else
+		echo
+		echo "$MSG"
+		echo
+	fi
+
+fi
diff --git a/debian/desktop/italc-client-autostart.desktop b/debian/desktop/italc-client-autostart.desktop
new file mode 100644
index 0000000..9fcce04
--- /dev/null
+++ b/debian/desktop/italc-client-autostart.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=iTALC Client Applet
+Name[de]=iTALC-Client Applet
+Categories=System;
+Exec=ica -autostart
+Icon=italc
+Type=Application
+Terminal=false
+NoDisplay=true
+Keywords=education;classroom;teachers;students;remote control;computer-labs;

-- 
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