Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/Process.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-12 15:21:22 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-12 15:21:22 (GMT)
commitd12b780074b05b0abcaf6b3877a9a4047c6e0d0e (patch)
tree13e33f093001aa2e5b639c8dfddcc2a64ed7797d /shell/Process.py
parentbe806eb1918f7db90e661b5fcb4e260a0b1ba669 (diff)
More work on session refactoring
Diffstat (limited to 'shell/Process.py')
-rw-r--r--shell/Process.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/Process.py b/shell/Process.py
index fcbf779..5fee905 100644
--- a/shell/Process.py
+++ b/shell/Process.py
@@ -1,6 +1,10 @@
+import logging
+
import gobject
class Process:
+ """Object representing one of the session processes"""
+
def __init__(self, command):
self._pid = None
self._command = command
@@ -9,6 +13,9 @@ class Process:
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)