Comment 0 for bug 1315383

Revision history for this message
Jamie Strandboge (jdstrand) wrote : media-hub should also allow playback of files from alternative click databases

Currently does_client_have_access() does:

else if (uri.find(std::string("opt/click.ubuntu.com/")) != std::string::npos
 && uri.find(pkgname) != std::string::npos)
 {
   std::cout << "Client can access content in own opt directory" << std::endl;
   return true;
 }

This is fine, but only takes into account /opt/click.ubuntu.com. In a default image, packages can also be installed in /usr/share/click/preinstalled/ and /custom/click. These locations are defined in /etc/click/databases.