How to add an account provider together with a scope in the same click package?

Asked by ric silva

I'm trying to bundle an account provider together with a (javascript) scope.

* I'm targeting frameworks 15.04.1

* I've been following the directions at [1], which state that I must have a separate apparmor profile using the ubuntu-account-plugin template;

* I've created the necessary provider, service and application files, as specified in [2];

*The click-review tool says that the generated click package passes the review (no errors);

* However, the SDK keeps complaining with the following:

   'The manifest file needs to specify if this is a app or a scope'

   I've followed the description and associated IRC logs and pastebins on this previous bug report [3], which says that a fix has been committed for this but I do not understand what is the fix. Apparently my manifest file includes all necessary fields.

I do not know why but I cannot even make the account provider show up when I access the account settings on my bq phone.

I am now a bit lost. It seems that I've followed all documented steps, and don't know how to proceed.

My code is available at [4]. I was planing to submit it for the scopes showdown competition, but if I don't manage to solve this problem with online accounts my scope will be of very limited use.

I also do not know how I can debug the problem other than checking for messages in /var/log/syslog (which does not produce any output regarding my attempts).

Thanks in advance for your help.

[1] - https://wiki.ubuntu.com/SecurityTeam/Specifications/OnlineAccountsConfinement
[2] - https://developer.ubuntu.com/en/start/platform/guides/online-accounts-developer-guide/
[3] - https://bugs.launchpad.net/click-reviewers-tools/+bug/1357211
[4] - https://github.com/ricardogsilva/unity-freesound-scope

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu click-reviewers-tools Edit question
Assignee:
No assignee Edit question
Solved by:
ric silva
Solved:
Last query:
Last reply:
Revision history for this message
ric silva (ricardo-garcia-silva) said :
#1

I was able to solve the problem.

Taking a hint from the comment on the IRC logs attached to the question, I inspected the contents of

~/.config/libaccounts-glib/accounts.db

This file is an sqlite database. The 'Services' table had an entry related to my service. This had been created by one of my previous wrong attempts and somehow it did not get deleted when I uninstalled the click. This was throwing off the account settings GUI. After deleting the entry from the table and reinstalling the click package I can now see my provider in the account settings GUI.