Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTam.py
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-06-26 21:31:27 (GMT)
committer Nat <natcl@hotmail.com>2007-06-26 21:31:27 (GMT)
commit69fd0fd9f02203e29bdf72abd035250238725c0a (patch)
tree45d741472404d55c657aa226e3f786e6768fbb8d /TamTam.py
parentb8f61566531b1c2afb2bcfe3d5d777c1b549365b (diff)
Spawn
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/TamTam.py b/TamTam.py
index dd70c6e..086e471 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -163,17 +163,11 @@ class TamTam(Activity):
return
elif key == 49:#39: S
#self.set_mode('synth')
- (a,b) = commands.getstatusoutput('/usr/share/activities/TamTam.activity/cnee --record --keyboard --mouse --stop-key h --out-file /home/olpc/test.xnl \&')
- print b
+ os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee', '--record', '--keyboard', '--mouse', '--stop-key', 'h', '--out-file', '/home/olpc/test.xnl')
return
elif key == 10:#25: W
#self.set_mode('welcome')
- if os.fork == 0:
- pass
- else:
- (a,b) = commands.getstatusoutput('/usr/share/activities/TamTam.activity/cnee --replay --keyboard --mouse --file /home/olpc/test.xnl \&')
- sys.exit(0)
- print b
+ os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--replay', '--keyboard', '--mouse', '--file', '/home/olpc/test.xnl')
return
elif key == 53: #X
self.destroy()