[New Feature] add content-hub API

Bug #1315989 reported by Joey Chan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Fix Released
High
Unassigned

Bug Description

We know that apps in UT are isolated.

Due to the content-hub is the only way to access user-space so far, I suggest that will be helpful if File-Manager add such APIs to content-hub, which will let other third-party apps possibly access user-space

Summary: just create some APIs LIKE importing images through Gallery-app

Related branches

David Planella (dpm)
Changed in ubuntu-filemanager-app:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Arto Jalkanen (ajalkane) wrote :

If this is about adding FileManager as ContentHub exporter, then this has been in progress for quite a while... it has unfortunately been delayed quite a bit due to the changes and various problems with the emulator and click packaging. But it is in-progress.

Revision history for this message
David Planella (dpm) wrote :

Hi Arto,

Now that the Content Hub support has landed, it'd be great to get this as the next feature for File Manager as soon as possible. Do you have a branch where you've started working on this? Or do you need help with anything to get that feature moving?

For reference, here's some additional info:

Content API docs:
http://developer.ubuntu.com/api/qml/sdk-14.04/Ubuntu.Content/

Code examples:
- lp:content-hub/examples
- https://code.launchpad.net/~ken-vandine/+junk/hub-importer

In particular:
- http://bazaar.launchpad.net/~ken-vandine/+junk/hub-importer/view/head:/hub-importer.qml#L104

Revision history for this message
Arto Jalkanen (ajalkane) wrote :

I do not have a branch yet as I'm basically at the stage where I must do some tests that the code works against ContentHub (have been at this stage for about month or so). The current problem is that the emulator does not work and just displays blank "Apps" tab when booted. I will try building a new instance again soon to see if it's been fixed.

Revision history for this message
David Planella (dpm) wrote :

Arto, in order not to block on the emulator showing the list of apps, have you tried to just run the app on it? The app should just run without requiring the apps scope to show the list of apps.

The README file on the source tree explains what's needed to get it to run from Qt Creator in a device (i.e. in the emulator).

Thanks!

Revision history for this message
Arto Jalkanen (ajalkane) wrote :

Unfortunately it seems running app directly will not help me test it. At least when I tried with the importer/exporter examples, the importer could not see the installed exporter. So I assume detection of newly installed ContentHub is somehow dependent on the parts that also fail on the Apps scope.

For whatt's it worth, I ran the apps by doing:

click list

upstart-app-triplet <app-name-from-the-list>
upstart-app-launch <triplet gotten from previous list>

The importer example only saw gallery, not the exporter app that I had also installed.

Revision history for this message
Arto Jalkanen (ajalkane) wrote :

Support for content-hub is now in trunk. It works only with Pictures. This will be the situation until Content-Hub support for any file type (which would make sense for using FileManager as exporter) has been clarified.

Changed in ubuntu-filemanager-app:
status: Triaged → Fix Committed
David Planella (dpm)
Changed in ubuntu-filemanager-app:
status: Fix Committed → Fix Released
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-filemanager-app at revision 320, scheduled for release in ubuntu-filemanager-app, milestone alpha-1

Changed in ubuntu-filemanager-app:
status: Fix Released → Fix Committed
Niklas Wenzel (nikwen)
Changed in ubuntu-filemanager-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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