~fboucault/ubuntu-filemanager-app/migrate_toolkit_13

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Testing Content-Hub support
===========================

## For the desktop

Install the following dependencies to run click applications:

    sudo apt-get install upstart-app-launch-tools

### Build FileManager and install FileManager as click package

Build FileManager as a click package and install it. At the time of this writing
this doesn't seem to be working with the SDK (due to cmake), but it can be done 
from command line:

First you must modify manifest.json and replace "architecture" value of "armhf" with "i386".
Just remember to change it back to armhf if you commit changes.

After that you can build x86 version of the package and install it:

    QT_SELECT=qt5 cmake . -DCLICK_MODE=1 && make -j2 && make install DESTDIR=install && click build install
    sudo click install --user=$USER ./com.ubuntu.filemanager_0.3.latest_i386.click 

### Build and install hub-importer as click package

Get the sources for building:

    bzr branch lp:~ken-vandine/+junk/hub-importer

You should be able to create click package out of it in SDK by opening the project and using Publish and Create package.

Install the created package (example):

    sudo click install --user=$USER com.ubuntu.developer.ken-vandine.hub-importer_0.2_all.click

### Running test

Run hub-importer (example):

    upstart-app-launch com.ubuntu.developer.ken-vandine.hub-importer_hub-importer_0.2

Click "Select source" button.

You should see File Manager as one of the choices. If you do not see File Manager, look at "Troubleshooting" section.
Click on File Manager, and File Manager should start. Now you should choose some pictures as that's the only thing
supported at the moment (even though FileManager allows selecting any type). You can select multiple files in a 
directory if you so choose. Once you're satisfied with the seelction, click "Select". You should see the pictures 
then in Hub Importer.

Troubleshooting
===============

* If you don't see File Manager as one of the choises in Hub Importer, then quit Hub Importer and run this script:
    /usr/lib/i386-linux-gnu/content-hub/content-hub-peer-hook
   Try running Hub Importer again after that and File Manager should show.
   If the above script does not exist, you can try locating something similar with:
    locate hook
* If you have trouble running Hub Importer or the above still doesn't work, check the installed click packages with:
   click list
   It should show entry for both File Manager and Hub Importer. If it does not, installing the click package has not succeeded
* If all else fails, check the logs for both Hub Importer and File Manager for further clues at:
    $HOME/.cache/upstart/