From 6f5683780a501e07498914a5049c39bd15f61650 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Fri, 10 Feb 2012 13:49:36 +0000 Subject: Add mime type when save in the journal This enable to other activities to identify the data Signed-off-by: Agustin Zubiaga Reviewed-by: Gonzalo Odiard Signed-off-by: Rafael Ortiz --- diff --git a/activity.py b/activity.py index 88313e2..306b081 100644 --- a/activity.py +++ b/activity.py @@ -166,6 +166,7 @@ class StopWatchActivity(Activity): self.gui.set_all(q) def write_file(self, file_path): + self.metadata['mime_type'] = 'application/x-stopwatch-activity' q = self.gui.get_all() f = open(file_path, 'w') cPickle.dump(q, f) diff --git a/activity/activity.info b/activity/activity.info index c8fd3da..5ccabfa 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -6,3 +6,4 @@ icon = activity-stopwatch activity_version = 13 show_launcher = yes license = GPLv3+ +mime_types = application/x-stopwatch-activity; diff --git a/activity/mimetypes.xml b/activity/mimetypes.xml new file mode 100644 index 0000000..2426820 --- /dev/null +++ b/activity/mimetypes.xml @@ -0,0 +1,7 @@ + + + + StopWatch Activity + + + -- cgit v0.9.1