[Html5 apps] Add the new HTML5 launcher /usr/bin/ubuntu-html5-app-launcher to the ubuntu-sdk profile

Bug #1274640 reported by Alexandre Abreu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apparmor-easyprof-ubuntu (Ubuntu)
Fix Released
High
Jamie Strandboge

Bug Description

A new launcher has been added for HTML5 apps that hides the complexity of qml & backend APIs to HTML5 developers. This new launcher should be added in the ubuntu-sdk template apparmor profile: /usr/bin/ubuntu-html5-app-launcher

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Can you attach a (sample) click package that is affected by this bug?

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Here is a sample click package that is meant to work in this context. You easily check it from:

http://bazaar.launchpad.net/~abreu-alexandre/unity-webapps-qml/fix-content-hub-export/files/head:/examples/api-bindings/content-hub-exporter/

Changed in apparmor-easyprof-ubuntu (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Ok, started looking at this. With 0.1+14.04.20140203.is.0.1+14.04.20140107-0ubuntu1 if I start the package via 'start application APP_ID=...' it doesn't start and the upstart log shows me:
/usr/bin/ubuntu-html5-app-launcher: 1: /usr/bin/ubuntu-html5-app-launcher: Syntax error: "&" unexpected (expecting ")")

Not sure what this is about, but it doesn't seem to be working right.

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

@Jamie: have you tried on the desktop? It succeeded w/ this very click package, right now, w/ :

ubuntu-html5-container:
  Installed: 0.1.1+14.04.20140204-0ubuntu1
  Candidate: 0.1.1+14.04.20140204-0ubuntu1
  Version table:
 *** 0.1.1+14.04.20140204-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I just tried on trusty with Unity 7. I get a different error now.

$ start application APP_ID=com.ubuntu.developer.alexandre-abreu.content-hub-html5-exporter_content-hub-html5-exporter_0.4
application start/running, process 16694

$ tail ~/.cache/upstart/application-click-com.ubuntu.developer.alexandre-abreu.content-hub-html5-exporter_content-hub-html5-exporter_0.4.log
pgrep: invalid user name: system
Ignoring argument: "$@"
file:///usr/share/ubuntu-html5-app-launcher/qml/main.qml:22:1: Type WebAppContainer unavailable
     WebAppContainer {
     ^
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/WebApps/WebAppContainer.qml:81:13: Cannot assign to non-existent property "requiresInit"
                 requiresInit: false
                 ^
Component not ready

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I should note that I dist-upgraded just before doing the above.

Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: In Progress → Confirmed
Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I got this to wrk with packages from a PPA. It will be included in apparmor-easyprof-ubuntu 1.1.4.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apparmor-easyprof-ubuntu - 1.1.4

---------------
apparmor-easyprof-ubuntu (1.1.4) trusty; urgency=medium

  * 1.*/ubuntu-sdk: adjust for ubuntu-html5-app-launcher (LP: #1274640)
    - allow reexec for /usr/bin/ubuntu-html5-app-launcher to handle HTML5 apps
      launched via upstart-app-launch
    - allow read access to /usr/share/ubuntu-html5-app-launcher/**
  * 1.*/accounts:
    - allow read on @{HOME}/.local/share/accounts/** to dereference click
      symlinks for online accounts providers (LP: #1278859)
    - add comment about usage of com.nokia.singlesignonui.cookiesForIdentity
  * 1.*/networking: finetune DownloadManager DBus access (LP: #1277578)
    - explicitly allow safe and explicitly disallow unsafe DownloadManager
      APIs
    - restrict apps to their own downloads
  * 1.*/ubuntu-webapp: allow the webapps access to SignonUi API for retrieving
    web cookies for an account (com.nokia.singlesignonui.cookiesForIdentity).
    This is being added to the ubuntu-webapp template instead of the accounts
    policy group because this API should only be available to the webapp
    container and is not needed to use online accounts in general
    (LP: #1278934)
 -- Jamie Strandboge <email address hidden> Wed, 12 Feb 2014 09:20:58 -0600

Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.