← Back to team overview

touch-packages team mailing list archive

[Bug 1442079] Re: Registry/ChildScopesRepository failures if some paths don't exist

 

** Changed in: unity-scopes-api (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1442079

Title:
  Registry/ChildScopesRepository failures if some paths don't exist

Status in unity-scopes-api package in Ubuntu:
  Fix Released

Bug description:
  I'm developing some tests in a clean linux container (much like a
  chroot), where I've never run a desktop session or our scopes. Because
  of that I've no ~/.local/share/applications directory, nor ~/.config
  /unity-scopes. This causes errors when scope registry attempts to
  create .desktop files and child scopes repository tries to store
  child-scopes.json.

  NB, it would be great if tests were not messing up with home directory
  contents; can it already be achieved with XDG_DATA_DIRS?

  scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
  scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
  scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
  scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
  scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
  scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
  [2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
  scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
  [2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
  scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
  [2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
  scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
  [2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
  [2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
  [2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
  [2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
  scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
      unable to open database file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1442079/+subscriptions


References