[X2Go-Commits] x2goserver.git - build-main (branch) updated: 3.1.1.6-2-g8ee6338

X2Go dev team git-admin at x2go.org
Wed Dec 4 06:18:26 CET 2013


The branch, build-main has been updated
       via  8ee633875ac5a916f7d060c3e518b69d0ff6073a (commit)
      from  5213ce605d9abaacf576e2df52891c047f2a8e1d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 debian/changelog              |    8 ++++++++
 debian/control                |    1 +
 x2goserver/bin/x2goruncommand |    7 +++++--
 3 files changed, 14 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index cf4f5cc..7fa6d07 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,14 @@ x2goserver (3.1.1.7-0~x2go1) UNRELEASED; urgency=low
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Mon, 12 Nov 2012 12:54:05 +0100
 
+x2goserver (3.1.1.7-0~x2go1) UNRELEASED; urgency=low
+
+  * New upstream release (3.1.1.7):
+    - Use DISTRIB_RELEASE to query Ubuntu release versions and detect Unity launch
+      command.
+
+ -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 12 Nov 2012 09:28:32 +0100
+
 x2goserver (3.1.1.6-0~x2go1) unstable; urgency=low
 
   * Bugfix release (3.1.1.6):
diff --git a/debian/control b/debian/control
index ba29b5a..f242c27 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Depends:
  ${misc:Depends},
  x2goagent (>= 2:3.5.0.15-0~),
  lsof,
+ bc,
  openssh-client,
  openssh-server,
  libconfig-simple-perl,
diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand
index d26fa82..28832a6 100755
--- a/x2goserver/bin/x2goruncommand
+++ b/x2goserver/bin/x2goruncommand
@@ -108,10 +108,13 @@ if [ "$cmd" == "GNOME" ] || [ "$cmd" == "gnome-session" ]; then
 
 elif ([ "$cmd" == "UNITY" ] || [ "$cmd" == "unity" ]); then
 	cmd="/usr/bin/gnome-session"
-	if [ "$DISTRIB_ID" == "Ubuntu" ] && echo "$DISTRIB_CODENAME" | egrep -v "^[a-n].*" >/dev/null; then
+	if [ "$DISTRIB_ID" == "Ubuntu" ] && $(echo $DISTRIB_RELEASE >= 12.10 | bc); then
+		export DESKTOP_SESSION="ubuntu"
+		args=" --session=$DESKTOP_SESSION"
+	if [ "$DISTRIB_ID" == "Ubuntu" ] && ( $(echo $DISTRIB_RELEASE == 11.10 | bc) ||  $(echo $DISTRIB_RELEASE == 12.04 | bc) ); then
 		export DESKTOP_SESSION="ubuntu-2d"
 		args=" --session=$DESKTOP_SESSION"
-	elif [ "$DISTRIB_ID" == "Ubuntu" ] && echo "$DISTRIB_CODENAME" | egrep -v "^n.*" >/dev/null; then
+	elif [ "$DISTRIB_ID" == "Ubuntu" ] && $(echo $DISTRIB_RELEASE == 11.04 | bc); then
 		export DESKTOP_SESSION="2d-ubuntu"
 		args=" --session=$DESKTOP_SESSION"
 	fi


hooks/post-receive
-- 
x2goserver.git (X2Go Server)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2goserver.git" (X2Go Server).




More information about the x2go-commits mailing list