[X2Go-Commits] [x2goserver] 01/01: Make X2Go Server aware of Rick Astley (RICKROLL)

git-admin at x2go.org git-admin at x2go.org
Wed Apr 1 03:24:25 CEST 2015


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

x2go pushed a commit to branch master
in repository x2goserver.

commit 4d93df50c4cd4d17e42a65f3939b7304a241dec9
Author: Mike DePaulo <mikedep333 at gmail.com>
Date:   Tue Mar 31 21:22:07 2015 -0400

    Make X2Go Server aware of Rick Astley (RICKROLL)
---
 debian/changelog              |    3 +++
 x2goserver/bin/x2goruncommand |   10 +++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b0991b1..718bccc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -173,6 +173,9 @@ x2goserver (4.0.1.20-0x2go1) UNRELEASED; urgency=low
   * New upstream version (4.0.1.20):
     - TERMINAL Session: Add support for qterminal
       (Lightweight terminal emulator written in Qt)
+    - Make X2Go Server aware of Rick Astley
+      (Single Application: Command: RICKROLL
+       Must be typed in manually in the client)
 
   [ Mihai Moldovan ]
   * New upstream version (4.0.1.20):
diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand
index ac7ff7f..24c5e4c 100755
--- a/x2goserver/bin/x2goruncommand
+++ b/x2goserver/bin/x2goruncommand
@@ -202,7 +202,11 @@ elif [ "$cmd" == "ICEWM" ]; then
 	cmd="/usr/bin/icewm-session"
 fi
 
-if [ "$cmd" == "WWWBROWSER" ]; then
+# Note: RICKROLL will not be a selectable option in X2Go Client or the
+# PyHoca clients. Users must type it in as the Command for a Single Application.
+
+if [ "$cmd" == "WWWBROWSER" ] || [ "$cmd" == "RICKROLL" ]; then
+	orig_cmd="$cmd"
 	if [ -e "/usr/bin/firefox.real" ]; then
 		cmd="/usr/bin/firefox.real"
 	elif  [ -e "/usr/bin/iceweasel" ]; then
@@ -220,6 +224,10 @@ if [ "$cmd" == "WWWBROWSER" ]; then
 	fi
 fi
 
+if [ "$orig_cmd" == "RICKROLL" ] ; then
+	cmd="${cmd} https://www.youtube.com/watch?v=dQw4w9WgXcQ"
+fi
+
 if [ "$cmd" == "MAILCLIENT" ]; then
 	if [ -e "/usr/bin/thunderbird" ]; then
 		cmd="/usr/bin/thunderbird"

--
Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list