[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 441b8571dbd5d8c641af0237160d008ee3fbcad9
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:27:30 CET 2014
The branch, build-baikal has been updated
via 441b8571dbd5d8c641af0237160d008ee3fbcad9 (commit)
from da8d017de45587adfc537bf1e68e9ccbd1674f05 (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:
x2go/xserver.py | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
The diff of changes is:
diff --git a/x2go/xserver.py b/x2go/xserver.py
index de3df50..20828c1 100644
--- a/x2go/xserver.py
+++ b/x2go/xserver.py
@@ -112,7 +112,7 @@ class X2goClientXConfig(inifiles.X2goIniFile):
_p_names = []
for process in _wmi.Win32_Process():
_p_names.append(process.Name)
-
+
for xserver_name in self.installed_xservers:
process_name = self.get_xserver_config(xserver_name)['process_name']
if process_name in _p_names:
@@ -121,6 +121,33 @@ class X2goClientXConfig(inifiles.X2goIniFile):
continue
return _running
+ @property
+ def xserver_launch_possible(self):
+ """\
+ STILL UNDOCUMENTED
+
+ """
+ return not bool(self.installed_xservers)
+
+ @property
+ def xserver_launch_needed(self):
+ """\
+ STILL UNDOCUMENTED
+
+ """
+ return not bool(self.running_xservers)
+
+ @property
+ def preferred_xserver(self):
+ """\
+ STILL UNDOCUMENTED
+
+ """
+ if self.xserver_launch_possible
+ return (self.installed_xservers[0], self.get_xserver_config(self.installed_xservers[0]))
+ else:
+ return None
+
class X2goXServer(threading.Thread):
"""
hooks/post-receive
--
python-x2go.git (Python X2Go Client API)
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 "python-x2go.git" (Python X2Go Client API).
More information about the x2go-commits
mailing list