[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.39.0-88-g84dc17b
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:26:08 CET 2014
The branch, build-baikal has been updated
via 84dc17b50657f585252a6b84492581144a01bf35 (commit)
from bb5da673c4bf3fbfe2d0396922bceaab8cd187df (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/pulseaudio.py | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
The diff of changes is:
diff --git a/x2go/pulseaudio.py b/x2go/pulseaudio.py
index 6fca90b..c4e7dd3 100644
--- a/x2go/pulseaudio.py
+++ b/x2go/pulseaudio.py
@@ -25,10 +25,8 @@ __NAME__ = 'x2gopulseaudio-pylib'
from defaults import X2GOCLIENT_OS as _X2GOCLIENT_OS
if _X2GOCLIENT_OS == 'Windows':
import wmi
- import win32api
- import win32file
- import win32security
import win32process
+ import win32con
import win32event
# modules
@@ -86,21 +84,13 @@ class X2goPulseAudio(threading.Thread):
cmd_options = " %s" % " ".join(cmd_options)
self.logger('starting PulseAudio server with command line: %s%s' % (cmd, cmd_options), loglevel=log.loglevel_DEBUG)
- sa = win32security.SECURITY_ATTRIBUTES()
- sa.bInheritHandle = 1
- _stdout_fh = win32file.CreateFile(os.path.join(os.environ['TEMP'], "pyhoca-gui_pulseaudio_stdout.log"), win32file.GENERIC_WRITE, 0, sa, win32file.OPEN_ALWAYS, win32file.FILE_FLAG_SEQUENTIAL_SCAN|win32file.FILE_FLAG_OVERLAPPED , 0)
- _stderr_fh = win32file.CreateFile(os.path.join(os.environ['TEMP'], "pyhoca-gui_pulseaudio_stderr.log"), win32file.GENERIC_WRITE, 0, sa, win32file.OPEN_ALWAYS, win32file.FILE_FLAG_SEQUENTIAL_SCAN|win32file.FILE_FLAG_OVERLAPPED , 0)
-
si = win32process.STARTUPINFO()
- si.hStdOutput = _stdout_fh
- si.hStdError = _stderr_fh
- si.hStdInput = win32api.GetStdHandle(win32api.STD_INPUT_HANDLE)
p_info = win32process.CreateProcess(None,
'%s\\%s %s' % (self.path, cmd, cmd_options),
None,
None,
0,
- win32process.NORMAL_PRIORITY_CLASS,
+ win32con.CREATE_NO_WINDOW|win32process.NORMAL_PRIORITY_CLASS,
None,
None,
si,
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