Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-06-09 21:25:38 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-06-09 21:25:38 (GMT)
commite736abf13d22b6658272db136cc66a7427729438 (patch)
tree09c4dee276e34463aa38643a2ebb4cc60324fd6f
parentdd9ff73475ad78a6bb3af6fb655b9b4594a95862 (diff)
adding tonyfoster's patch to fix journal copying
-rw-r--r--pippy_app.py26
1 files changed, 18 insertions, 8 deletions
diff --git a/pippy_app.py b/pippy_app.py
index a787ab6..74f37d6 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -78,16 +78,25 @@ class ScreencastActivity(ViewSourceActivity):
def write_file (self, file_path):
print "Saving file to %s" % file_path
self.metadata['mime_type'] = 'video/ogg'
- try:
- shutil.copy(OUTFILE, file_path)
- except IOError, e:
- print "Error saving outfile: %s" % e
+ #try:
+ # shutil.copy(OUTFILE, file_path)
+
+ #except IOError, e:
+ # print "unable to save to outfile: %s" % e
+
# FIXME: This fails in /tmp.
- try:
- os.remove(OUTFILE)
- except OSError, e:
- print "Error removing outfile: %s" % e
+ # that comment by probably cjb
+ # I have no idea why it was saving to filepath
+ #added copy-to-journal in check_status_cb
+ #error msgs are OK probably just no video processed
+ #Tony Forster
+
+ #try:
+
+ # os.remove(OUTFILE)
+ #except OSError, e:
+ # print "unable to remove outfile: %s" % e
def record_cb(self, record):
self.stop.set_sensitive(True)
@@ -114,6 +123,7 @@ class ScreencastActivity(ViewSourceActivity):
print "no more record process"
# The recording process exited
self.status.set_text("Status: Stopped")
+ os.system('copy-to-journal /tmp/recordmydesktop.ogv -m video/ogg')
return False
else:
# Maybe we have new stderr.