Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar/bundle/activitybundle.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py
index c39c519..a073c7a 100644
--- a/src/sugar/bundle/activitybundle.py
+++ b/src/sugar/bundle/activitybundle.py
@@ -317,6 +317,13 @@ class ActivityBundle(Bundle):
else:
logging.warning(err)
+ self.install_mime_type(install_path)
+
+ return install_path
+
+ def install_mime_type(self, install_path):
+ ''' Update the mime type database and install the mime type icon
+ '''
xdg_data_home = os.getenv('XDG_DATA_HOME',
os.path.expanduser('~/.local/share'))
@@ -351,8 +358,6 @@ class ActivityBundle(Bundle):
os.path.join(installed_icons_dir,
os.path.basename(info_file)))
- return install_path
-
def _symlink(self, src, dst):
if not os.path.isfile(src):
return