Maybe we are missing each other here. I'm trying to help. I'm just
pointing out that there are some potential issues we should think about.
It may well be that I don't have the complete picture...

When you say "if a particular AppID is connected to a scope", I don't
really know what you mean. All the scopes runtime knows about are scope
IDs. That's it. The scopes may be kicking around in all sorts of
directories, depending on configuration. So, there is no  fixed place in
the file system where we can look to answer the question. Instead, we
have to parse a bunch of config files first, and the way to do that get
the information out is to ask the registry. Asking the registry requires
instantiating a client-side runtime.

If you don't mind keeping a runtime around and the cost of initialising
and finalising it, no change to the scopes API is needed at all. The
registry can deliver a list of scope IDs it knows about through already
existing APIs. To the registry, scope IDs are simply strings. It doesn't
understand anything about them, other than that they are unique. So, if
it's possible to answer your question by just looking at a list of known
scope IDs and doing some pattern matching on them, we can do that today,
in a few lines of code. No change to the scopes API necessary. I'm happy
to help with an example client that does this.

So, if all you need is a list of the scope IDs that are known to the
registry, no problem, we can do that right now. If you are asking the
scopes runtime to understand something about the de

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1465675

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to