The branch, master has been updated via 7d859c5a132df3f94245ccafad69406e1e662080 (commit) from 976a7bf469b52fa3c710df05afa963468f653036 (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 ----------------------------------------------------------------- commit 7d859c5a132df3f94245ccafad69406e1e662080 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Fri Jun 24 17:08:54 2011 +0200 Terminate shared desktop sessions of Ctrl-C (instead of suspending them. ----------------------------------------------------------------------- Summary of changes: debian/changelog | 6 ++++-- pyhoca/cli/frontend.py | 16 +++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) The diff of changes is: diff --git a/debian/changelog b/debian/changelog index 2882c60..af0b49d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,11 @@ -pyhoca-cli (0.1.4.0-0~x2go3) UNRELEASED; urgency=low +pyhoca-cli (0.1.4.0-0~x2go4) UNRELEASED; urgency=low * New upstream version (0.1.4.0): - Add X2go desktop sharing support. + - Terminate shared desktop sessions of Ctrl-C (instead of + suspending them. - -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Mon, 13 Jun 2011 23:24:37 +0200 + -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Fri, 24 Jun 2011 17:08:12 +0200 pyhoca-cli (0.1.3.3-0~x2go2) unstable; urgency=low diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py index 6656cb1..8b58146 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -398,11 +398,17 @@ class PyHocaCLI(x2go.X2goClient): self._pyhoca_logger("X2go session %s has been moved to a different screen" % session_name, loglevel=x2go.loglevel_NOTICE, ) except KeyboardInterrupt: - self._pyhoca_logger("Suspending X2go session %s" % session_name, loglevel=x2go.loglevel_INFO, ) - self._X2goClient__suspend_session(self.x2go_session_hash) - # giving nxproxy's SSH tunnel some time to settle - time.sleep(2) - self._pyhoca_logger("X2go session %s has been suspended" % session_name, loglevel=x2go.loglevel_NOTICE, ) + if self.args.share_desktop: + self._pyhoca_logger("Terminating X2go shared desktop session %s" % session_name, loglevel=x2go.loglevel_INFO, ) + self._X2goClient__terminate_session(self.x2go_session_hash) + time.sleep(2) + self._pyhoca_logger("X2go session %s has been terminated" % session_name, loglevel=x2go.loglevel_NOTICE, ) + else: + self._pyhoca_logger("Suspending X2go session %s" % session_name, loglevel=x2go.loglevel_INFO, ) + self._X2goClient__suspend_session(self.x2go_session_hash) + # giving nxproxy's SSH tunnel some time to settle + time.sleep(2) + self._pyhoca_logger("X2go session %s has been suspended" % session_name, loglevel=x2go.loglevel_NOTICE, ) except x2go.X2goSessionException, e: self._pyhoca_logger("X2goSessionException occured:", loglevel=x2go.loglevel_ERROR) hooks/post-receive -- pyhoca-cli.git (Python X2go Client (command line client)) 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 "pyhoca-cli.git" (Python X2go Client (command line client)).