← Back to team overview

ubuntu-phone team mailing list archive

Re: Sharing

 

Ok, this line in apparmor fixed problem:

"content_exchange_source"

But now I can see Shorts in "Share to..." dialog, see attachment:

[image: Встроенное изображение 1]


2015-06-03 0:43 GMT+03:00 Roman Shchekin <mrqtros@xxxxxxxxx>:

> Sadly, but no, I've something like:
>
> Loading module: 'libubuntu_application_api_touch_mirclient.so.2.9.0'
>>
>> <Unknown File>: QML UCDeprecatedTheme: Theme.palette is deprecated. Use
>> ThemeSettings instead.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/ListItems/1.2/Base.qml:173:5:
>> QML ProgressionVisual: Theme.createStyleComponent() is deprecated. Use
>> ThemeSettings instead.
>>
>> qrc:///qml/pages/EditFeedPage.qml:121:17: QML TextField:
>> Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
>>
>> qrc:///qml/pages/AppendFeedPage.qml:256:13: QML ActivityIndicator:
>> Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
>>
>> qrc:///qml/pages/AppendFeedPage.qml:133:9: QML TextField:
>> Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/1.2/MainView.qml:124:9:
>> QML AppHeader: Theme.createStyleComponent() is deprecated. Use
>> ThemeSettings instead.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Themes/Ambiance/1.2/PageHeadStyle.qml:86:5:
>> QML StyledItem: Theme.createStyleComponent() is deprecated. Use
>> ThemeSettings instead.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/1.2/MainViewBase.qml:35:5:
>> QML StyledItem: Theme.createStyleComponent() is deprecated. Use
>> ThemeSettings instead.
>>
>> <Unknown File>: QML UCDeprecatedTheme: Theme.name is deprecated. Use
>> ThemeSettings instead.
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> <Unknown File>: Invalid empty URL
>>
>> qml: db version: 1.2
>>
>> qml: loadArticles {"isAll":true}
>>
>> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply
>> "An AppArmor policy prevents this sender from sending this message to this
>> recipient; type="method_call", sender=":1.107" (uid=32011 pid=5704
>> comm="/opt/click.ubuntu.com/.click/users/phablet/shorts-")
>> interface="org.freedesktop.DBus.Properties" member="GetAll" error
>> name="(unset)" requested_reply="0"
>> destination="org.freedesktop.NetworkManager" (uid=0 pid=1738
>> comm="NetworkManager ")"
>>
>> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An
>> AppArmor policy prevents this sender from sending this message to this
>> recipient; type="method_call", sender=":1.107" (uid=32011 pid=5704
>> comm="/opt/click.ubuntu.com/.click/users/phablet/shorts-")
>> interface="org.freedesktop.NetworkManager" member="GetDevices" error
>> name="(unset)" requested_reply="0"
>> destination="org.freedesktop.NetworkManager" (uid=0 pid=1738
>> comm="NetworkManager ")"
>>
>> "Object path cannot be empty"
>>
>> "Object path cannot be empty"
>>
>> qrc:///qml/pages/TopicComponent.qml:181:17: QML TextField:
>> Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
>>
>> UbuntuWindow::handleSurfaceFocusChange(focused=true)
>>
>> UbuntuWindow::handleSurfaceResize(width=768, height=1222)
>>
>> UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/Popups/1.2/Popover.qml:203:5:
>> QML StyledItem: Theme.createStyleComponent() is deprecated. Use
>> ThemeSettings instead.
>>
>> libust[5704/5818]: Error: Error opening shm /lttng-ust-wait-5-32011 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>> libust[5704/5818]: Error: Error opening shm /lttng-ust-wait-5-32011 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>> libust[5704/5817]: Error: Error opening shm /lttng-ust-wait-5 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>> libust[5704/5817]: Error: Error opening shm /lttng-ust-wait-5 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker11.qml:48:5:
>> QML Header: Theme.createStyleComponent() is deprecated. Use ThemeSettings
>> instead.
>>
>> qml: WARNING: Header is an internal component of Ubuntu.Components andits
>> API may change or be removed at any moment.Please use MainView and Page
>> instead.
>>
>> file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker11.qml:203:
>> TypeError: Cannot read property 'peers' of null
>>
>> Sdk-Launcher> Application was resumed
>>
>> Sdk-Launcher> Application was focused
>>
>> qml:
>> {"objectName":"","state":5,"direction":0,"selectionType":0,"store":"An
>> AppArmor policy prevents this sender from sending this message to this
>> recipient; type=\"method_call\", sender=\":1.400\" (uid=32011 pid=5704
>> comm=\"/opt/click.ubuntu.com/.click/users/phablet/shorts-\
>> <http://click.ubuntu.com/.click/users/phablet/shorts-%5C>")
>> interface=\"com.ubuntu.content.dbus.Transfer\" member=\"Store\" error
>> name=\"(unset)\" requested_reply=\"0\"
>> destination=\"com.ubuntu.content.dbus.Service\" (uid=32011 pid=5226
>> comm=\"/usr/bin/content-hub-service
>> \")","items":{},"downloadId":"","contentType":0,"source":"An AppArmor
>> policy prevents this sender from sending this message to this recipient;
>> type=\"method_call\", sender=\":1.400\" (uid=32011 pid=5704 comm=\"/opt/
>> click.ubuntu.com/.click/users/phablet/shorts-\
>> <http://click.ubuntu.com/.click/users/phablet/shorts-%5C>")
>> interface=\"com.ubuntu.content.dbus.Transfer\" member=\"source\" error
>> name=\"(unset)\" requested_reply=\"0\"
>> destination=\"com.ubuntu.content.dbus.Service\" (uid=32011 pid=5226
>> comm=\"/usr/bin/content-hub-service \")","destination":"An AppArmor policy
>> prevents this sender from sending this message to this recipient;
>> type=\"method_call\", sender=\":1.400\" (uid=32011 pid=5704 comm=\"/opt/
>> click.ubuntu.com/.click/users/phablet/shorts-\
>> <http://click.ubuntu.com/.click/users/phablet/shorts-%5C>")
>> interface=\"com.ubuntu.content.dbus.Transfer\" member=\"destination\" error
>> name=\"(unset)\" requested_reply=\"0\"
>> destination=\"com.ubuntu.content.dbus.Service\" (uid=32011 pid=5226
>> comm=\"/usr/bin/content-hub-service \")"}
>>
>> qml: __exportItemsWhenPossible 5
>> http://lucky978.deviantart.com/art/150-Blue-Butterfly-536706887
>>
>> UbuntuWindow::handleSurfaceFocusChange(focused=false)
>>
>> libust[5704/5818]: Error: Error opening shm /lttng-ust-wait-5-32011 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>> libust[5704/5817]: Error: Error opening shm /lttng-ust-wait-5 (in
>> get_wait_shm() at lttng-ust-comm.c:958)
>>
>
> Marked some output with magenta, I hope it will help.
>
> 2015-06-02 18:30 GMT+03:00 Ken VanDine <ken.vandine@xxxxxxxxxxxxx>:
>
>> I think that's really a documentation problem, I'll get that sorted out.
>> Not all apps that integrate with the content-hub have to register as a
>> handler.  In your case that's important, but at runtime we can't really log
>> anything relevant.
>>
>> So have you gotten it working?
>>
>> Thanks,
>> Ken
>>
>> On Tue, Jun 2, 2015 at 10:52 AM, Roman Shchekin <mrqtros@xxxxxxxxx>
>> wrote:
>>
>>> Michael, huge thanks!
>>>
>>> I think that problem is in:
>>>
>>> {
>>>>     "share": [
>>>>         "pictures"
>>>>     ]}
>>>>
>>>> I have no such code data in my project...
>>>
>>>
>>> BTW, can we output something useful in such cases? Absract developer
>>> can't find problem himself without an advice.
>>>
>>> 2015-06-02 15:28 GMT+03:00 Michael Zanetti <
>>> michael.zanetti@xxxxxxxxxxxxx>:
>>>
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Hi,
>>>>
>>>> This example receives Images via ContentHub, uploads the image to
>>>> imgur and then shares the Link to imgur again via ContentHub:
>>>>
>>>> http://bazaar.launchpad.net/~mzanetti/imgur-share/trunk/files/head:/app/
>>>>
>>>> Hope this helps,
>>>> Michael
>>>>
>>>> On 01.06.2015 22:35, Roman Shchekin wrote:
>>>> > Hi all
>>>> >
>>>> > Can someone provide minimalistic working example of sharing via
>>>> > ContentHub? I tried to implement it myself but when I select peer
>>>> > nothing happens, transfer is in state "Aborted" permanently.
>>>> >
>>>> > Thx.
>>>> >
>>>> >
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v1
>>>>
>>>> iEYEARECAAYFAlVtoWAACgkQXJwWsxE5x7iHkACdEUL/y/KhaFXpMnJOhkD/ANHa
>>>> t+YAmwQAaMJhowXvhJCsxZnRlXIhDMWP
>>>> =QVLK
>>>> -----END PGP SIGNATURE-----
>>>>
>>>> --
>>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>
>>>
>>> --
>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>

PNG image


Follow ups

References