[X2Go-Commits] [live-build-x2go] 123/186: cloned x3270 config for x5250 config

git-admin at x2go.org git-admin at x2go.org
Wed Mar 20 22:55:26 CET 2019


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

x2go pushed a commit to branch feature/mate-minidesktop-stretch
in repository live-build-x2go.

commit d7ca09cd154e91ecd149e689c7cf0977bc6dbab3
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Wed Jan 16 20:14:05 2019 +0000

    cloned x3270 config for x5250 config
---
 .../015_copy-x5250-shortcuts-to-desktop            | 26 ++++++++++++++++++
 .../lib/live/config/2910-x5250-config              | 31 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/015_copy-x5250-shortcuts-to-desktop b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/015_copy-x5250-shortcuts-to-desktop
new file mode 100755
index 0000000..c27cbbb
--- /dev/null
+++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/015_copy-x5250-shortcuts-to-desktop
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Copyright (C) 2010-2015 by X2Go project, http://wiki.x2go.org
+#       Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+#       Moritz 'Morty' Struebe <Moritz.Struebe at informatik.uni-erlangen.de>
+#       Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+# X2Go is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# X2Go is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+if [ -z "$X2GO_HANDLE_DAEMON" ] ; then
+	mkdir -p ~x2gothinclient/Desktop
+	[ -f /usr/share/applications/x5250-0.desktop ] && cp /usr/share/applications/x5250*.desktop ~x2gothinclient/Desktop
+fi
diff --git a/config/includes.chroot/lib/live/config/2910-x5250-config b/config/includes.chroot/lib/live/config/2910-x5250-config
new file mode 100755
index 0000000..ca50019
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2910-x5250-config
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+X5250Config ()
+{
+	# Output startup message
+	#
+	echo -n " x5250config"
+
+	X5250SERVERS=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \
+		      awk -F'=' ' /^x5250servers=/ { print $2 } ' | tr -dc 'a-zAZ0-9:.|' | tr '|' ' ')
+	if [ -n "$X5250SERVERS" ] && [ -n "$(which x5250)" ] ; then
+		HOSTCOUNT=0
+		for HOST in $X5250SERVERS; do
+			HOSTNAME=${HOST%%:*}
+	        cat >>/usr/share/applications/x5250-$HOSTCOUNT.desktop <<X5250CONFIG
+[Desktop Entry]
+Name=X5250 $HOSTNAME
+Comment=Connect to Host '$HOSTNAME' via Telnet 5250
+Exec=x5250 $HOST
+Icon=computer
+Terminal=false
+Type=Application
+StartupNotify=false
+Categories=Network;RemoteAccess;
+X5250CONFIG
+		HOSTCOUNT=$((HOSTCOUNT+1))
+		done
+	fi
+}
+
+X5250Config

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list