The URL dispatcher case is that it gets a URL that looks like this:

 scope://com.foo_bar

I want to know whether to return an error on that URL because it is a
scope that doesn't exist, or to pass it onto the dash. So it is really
just testing that string to see if it is something that the dash will
understand.

What I want is to be able to ask the "Scope system" whether it considers
the ID valid. If that involves connecting to service or checking a file
is really an implementation detail. I just want to know if that ID (or
one with the version in it) are considered valid.

-- 
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/1465675

Title:
  API needed to determine if App ID is a scope

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  
  There are a few cases where we'd like it if a higher level service could 
determine if a particular AppID is connected to a scope. This mostly deals with 
requests that relate to trusted session prompts as they need to be overlayed on 
top of the dash instead of the calling process. Another is so that URL 
dispatcher can return better errors on the scope:// URL namespace. I don't 
think that it needs to be complex, roughly something like this:

  bool isScope (const char * appid);

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to