Add mime matching to the registry.

This commit is contained in:
Marco Pesenti Gritti
2007-05-27 20:43:31 +02:00
parent 42fef182f4
commit 11437e3484
3 changed files with 22 additions and 6 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
a#!/usr/bin/env python
import sys
import os
import zipfile
@@ -44,7 +44,7 @@ if os.spawnlp(os.P_WAIT, 'unzip', 'unzip', sys.argv[1], '-d', bundle_dir):
raise RuntimeError, 'An error occurred while extracting the .xo contents.'
# notify shell of new bundle
if not dbus_service.add_bundle(bundle_path):
if not dbus_service.AddBundle(bundle_path):
# error, let's delete the just expanded bundle.
for root, dirs, files in os.walk(bundle_path, topdown=False):
for name in files: