|
|
|
@ -686,14 +686,11 @@ class Activity(Window, gtk.Container):
|
|
|
|
|
self.metadata['preview'] = dbus.ByteArray(preview)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
if self._jobject.file_path:
|
|
|
|
|
self.write_file(self._jobject.file_path)
|
|
|
|
|
else:
|
|
|
|
|
file_path = os.path.join(self.get_activity_root(), 'instance',
|
|
|
|
|
'%i' % time.time())
|
|
|
|
|
self.write_file(file_path)
|
|
|
|
|
self._owns_file = True
|
|
|
|
|
self._jobject.file_path = file_path
|
|
|
|
|
file_path = os.path.join(self.get_activity_root(), 'instance',
|
|
|
|
|
'%i' % time.time())
|
|
|
|
|
self.write_file(file_path)
|
|
|
|
|
self._owns_file = True
|
|
|
|
|
self._jobject.file_path = file_path
|
|
|
|
|
except NotImplementedError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|