#6183 NORM Future : Browser vanishes from activity toolbar for no apparent reason

Zarro Boogs per Child bugtracker at laptop.org
Wed Jan 30 15:22:35 EST 2008


#6183: Browser vanishes from activity toolbar for no apparent reason
---------------------+------------------------------------------------------
  Reporter:  Ivo     |       Owner:  marco         
      Type:  defect  |      Status:  new           
  Priority:  normal  |   Milestone:  Future Release
 Component:  sugar   |     Version:  Q2D07         
Resolution:          |    Keywords:                
  Verified:  0       |    Blocking:                
 Blockedby:          |  
---------------------+------------------------------------------------------

Comment(by tomeu):

 Ok, I'm sorry this ticket is taking you so much time.

 Can you substitute these two files for the attachments, reboot, and attach
 shellservice.log?

 /usr/bin/sugar-shell-service
 /usr/share/sugar/services/shell/bundleregistry.py

 The added debug prints should give us enough details to know what's going
 on. This is the diff:

 {{{
 diff --git a/services/shell/bundleregistry.py
 b/services/shell/bundleregistry.py
 index 8dd141c..5b787aa 100644
 --- a/services/shell/bundleregistry.py
 +++ b/services/shell/bundleregistry.py
 @@ -78,6 +78,7 @@ class BundleRegistry(gobject.GObject):
          return self._bundles.__iter__()

      def _scan_directory(self, path):
 +        logging.debug('BundleRegistry._scan_directory: %r' % path)
          if not os.path.isdir(path):
              return

 @@ -96,6 +97,7 @@ class BundleRegistry(gobject.GObject):

          bundle_dirs = bundles.keys()
          bundle_dirs.sort(lambda d1,d2: cmp(bundles[d1], bundles[d2]))
 +        logging.debug('BundleRegistry._scan_directory: %r' % bundle_dirs)
          for dir in bundle_dirs:
              try:
                  self.add_bundle(dir)
 @@ -104,9 +106,11 @@ class BundleRegistry(gobject.GObject):
                                'bundle: %s, %s, %s' % (dir, e.__class__,
 e))

      def add_bundle(self, bundle_path):
 +        logging.debug('BundleRegistry.add_bundle: %r' % bundle_path)
          try:
              bundle = ActivityBundle(bundle_path)
 -        except MalformedBundleException:
 +        except MalformedBundleException, e:
 +            logging.error('BundleRegistry.add_bundle: malformed bundle:
 %r' % bundle_path)
              return False

          self._bundles.append(bundle)
 diff --git a/services/shell/sugar-shell-service b/services/shell/sugar-
 shell-service
 index e5c6a7d..f1253f2 100755
 --- a/services/shell/sugar-shell-service
 +++ b/services/shell/sugar-shell-service
 @@ -30,12 +30,12 @@ from sugar import env

  sys.path.append(env.get_service_path('shell'))

 -import clipboardservice
 -import activityregistryservice
 -
  logger.start('shellservice')
  logging.info('Starting shell service.')

 +import clipboardservice
 +import activityregistryservice
 +
  gobject.threads_init()
  dbus.glib.threads_init()

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/6183#comment:18>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list