diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-12 20:17:57 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-12 20:17:57 (GMT) |
commit | 2bbedf988b39c5af35777954444ba54ceba13ecb (patch) | |
tree | f3607f074de03e6774a9e8963d485ea4db7dcc1c /shell/Process.py | |
parent | d12b780074b05b0abcaf6b3877a9a4047c6e0d0e (diff) |
Fix a bunch of bugs, more cleanups
Diffstat (limited to 'shell/Process.py')
-rw-r--r-- | shell/Process.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/shell/Process.py b/shell/Process.py index 5fee905..ea5dd0c 100644 --- a/shell/Process.py +++ b/shell/Process.py @@ -6,18 +6,12 @@ class Process: """Object representing one of the session processes""" def __init__(self, command): - self._pid = None self._command = command def get_name(self): return self._command def start(self): - print self._command - logging.debug('Start %s' % (self._command)) - args = self._command.split() - flags = gobject.SPAWN_SEARCH_PATH or gobject.SPAWN_STDERR_TO_DEV_NULL - result = gobject.spawn_async(args, flags=flags, standard_output=True) - self._pid = result[0] - self._stdout = result[2] + flags = gobject.SPAWN_SEARCH_PATH + result = gobject.spawn_async(args, flags=flags) |