Add a twitter account, and then run this attached QML on the phone. If
you don't have a twitter account to test with, add any other account via
system settings, and modify this QML to use that account instead of
twitter. The result when the app runs is that a full screen blank window
will be opened overlaid on the app itself.

Run with "qmlscene --desktop_file_hint=/usr/share/applications/dialer-
app.desktop twitter-test.qml"

Output of online-account-service debug:

service.cpp 42 requestAccess Got request: QMap(("application", 
QVariant(QString, "com.ubuntu.developer.webapps.webapp-twitter") ) ( "pid" ,  
QVariant(uint, 28963) ) ( "provider" ,  QVariant(QString, "twitter") ) ) 
utils.cpp 49 apparmorProfileOfPeer App ID: "unconfined"
request-manager.cpp 113 runQueue Head: OnlineAccountsUi::Request(0x1f10c78)
mir-helper.cpp 151 session_event_callback Prompt Session state updated to 1
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
/usr/bin/online-accounts-ui: unrecognized option '--socket'
/usr/bin/online-accounts-ui: unrecognized option '--profile'
ui-server.cpp 103 onDataReady QMap(("code", QVariant(QString, "process") ) ( 
"data" ,  QVariant(QVariantMap, QMap(("application", QVariant(QString, 
"com.ubuntu.developer.webapps.webapp-twitter") ) ( "pid" ,  QVariant(uint, 
28963) ) ( "provider" ,  QVariant(QString, "twitter") ) ) ) ) ( "id" ,  
QVariant(int, 0) ) ( "interface" ,  QVariant(QString, 
"com.ubuntu.OnlineAccountsUi") ) ( "profile" ,  QVariant(QString, "unconfined") 
) ) 

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_desktop_app_info: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **: 
ag_application_get_desktop_app_info: assertion 'self != NULL' failed
file not found: "/home/phablet/.local/share/accounts/applications/.application"

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **:
ag_application_get_service_usage: assertion 'self != NULL' failed

(process:28975): accounts-glib-CRITICAL **: ag_application_get_service_usage: 
assertion 'self != NULL' failed
qml: Page_QMLTYPE_32(0x7826e8)"Twitter": In Ubuntu.Components 1.3, the use of 
Page.title, Page.flickable and Page.head is deprecated. Use Page.header and the 
PageHeader component instead.


** Attachment added: "twitter-test.qml"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings-online-accounts/+bug/1594944/+attachment/4688517/+files/twitter-test.qml

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-system-settings-
online-accounts in Ubuntu.
https://bugs.launchpad.net/bugs/1594944

Title:
  Setup.exec() for existing account type results in blank full screen
  window

Status in Canonical System Image:
  New
Status in ubuntu-system-settings-online-accounts package in Ubuntu:
  Incomplete

Bug description:
  If an account already exists, calling Setup.exec() again results in a
  blank window being overlaid on top of the application which made the
  request. There is no way to close this window.

  This API is what the online accounts integration in the scopes API
  relies upon, to allow logging in to accounts, and so we have come to
  rely upon this API as well in multiple places, as a means to log into
  the Ubuntu One account, when it is necessary to do so. However, due to
  this issue, the only way to reliably present a login window at an
  appropriate time, is to delete the account when it appears to have
  been invalidated by the server, and to then present the login window
  to create a new account.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1594944/+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