=== _salem is now known as salem_ === chriadam|away is now known as chriadam === javiercrowsoft1 is now known as javiercrowsoft [01:59] the heck [02:00] the lockscreen used the keyboard === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [03:54] * ahoneybun flashes LunaOS on his N4 [03:54] lol === chihchun is now known as chihchun_afk === salem_ is now known as _salem === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [08:38] good morning, I need some help [08:38] http://pastebin.com/Td7jYh83 [08:39] How can I align label horizontal centered [08:39] but in bottom of image === chriadam is now known as chriadam|away [09:00] ubik__: anchors { bottom: circleImage2.bottom; horizontalCenter: circleImage2.horizontalCenter } in the Label. [09:00] ubik__: see http://doc.qt.io/qt-5/qml-qtquick-item.html#anchors-prop [09:01] ubik__: ^the first example there is probably what you wnat [09:01] *want === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [09:24] is it possible to use qt designer for designing ubuntu phone apps? [09:25] I get error "error reading typinfo-files" [09:25] when i click "Designer" in ubuntu-sdk [09:25] yeah, i dont think the designer works [09:25] ok [09:28] still having problems with my app [09:28] how can i center all objects [09:29] to the middle of the screen [09:29] vertical and horizontal? [09:29] with my grid? [09:30] I've got it horizontal centered [09:30] but i need vertical also [09:34] http://fs1.directupload.net/images/150818/qiufx8st.png [09:34] something like this [09:37] http://pastebin.com/43Fv9ptX [09:37] my code === chihchun is now known as chihchun_afk [09:42] http://www.bilder-upload.eu/show.php?file=31e598-1439891706.png [09:42] but it looks like this [09:53] hi all [10:13] davidcalle, on https://bugs.launchpad.net/developer-ubuntu-com/+bug/1466519 do we still need to do anything? [10:13] Ubuntu bug 1466519 in Ubuntu Developer Portal "Almost half the links to QML API documents are broken" [High,Confirmed] [11:02] dholbach, nope, we are good === chihchun_afk is now known as chihchun [11:50] zsombi: Hi [11:50] zsombi: I think I may be really late with this, but I *think* the swipe-delete width might become a release tracker for clock-app. Would you be able to install lp:ubuntu-clock-app on your phone and check for yourself if you can delete alarms consistently? [11:55] s/tracker/blocker [12:01] nik90: is there a bug for it [12:01] ? [12:02] popey: No, I just reported it over to zsombor a few days back. I will create one now. [12:02] ok, thanks === gshereme|away is now known as gshereme [12:11] popey, zsombi: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1486008 [12:11] Ubuntu bug 1486008 in ubuntu-ui-toolkit (Ubuntu) "leading actions width is too small making it very difficult to press" [Undecided,New] [12:18] nik90: hi [12:18] hey :) [12:19] nik90: the sample in the bug is bad [12:20] zsombi: I copied a lot of its code from the SDK documentation like listitem.destroy() and so on. What's wrong in the code? May be that could fix clock-app's issue. [12:20] nik90: or, let's say, you should never destroy a ListItem like that, unles you are using it like you did, outside of a ListView :) [12:20] zsombi: I never use listitem.destroy()...this is also the first time using a listitem outside a listview :) [12:20] nik90: for instance in clock app, you shoudl delete the model from the index, not the list item! [12:20] ok :) [12:21] I usually delete the data in the list model and that's what we do as well in clock. [12:21] nik90: so, the space for the action is not enough you say? [12:21] zsombi: yes, as I previously mentioned, clicking on the delete button just hides the delete button. And I find it quite hard to delete it. [12:22] On the desktop I don't notice the issue..it just becomes prevalent on a N4. [12:22] nik90: uhm.... if the panel gets hidden when you tap on it, it means you get the action also triggered... [12:22] nik90: you don't have krillin... [12:22] zsombi: I do [12:22] have a krillin [12:22] nik90: try on that one... [12:23] alrite, one sec [12:23] nik90: you should have 1.2 on that [12:23] zsombi: actually my krillin is on stable OTAs..so it wouldn't have the latest SDK change you made to the width. [12:23] nik90: hmm... you may not have the same width there unless you use devel-proposed... === _salem is now known as salem_ [12:24] nik90: or rc-proposed [12:24] and its my daily phone ;) [12:24] zsombi: yeah for me the issue started only with rc-proposed channel, a few images back [12:24] nik90: ok, so you probably should have that there too... [12:25] zsombi: ? not sure I follow. This issue is reproducible on a Nexus 4 running the rc-proposed images. I didnt test on krillin since it is my daily phone with the stable OTAs [12:26] somewhere around #95 image this issue started [12:26] nik90: ok, so if you don't want to update, I'm fine :) [12:26] nik90: I'll try with your sample... [12:27] zsombi: should it matter though? What's the difference between Nexus 4 and krillin w.r.t to the list item width? [12:27] nik90: some things work differently in these HWs [12:27] ah ok [12:27] so the touch for instance may also behave differently... you never now [12:27] know [12:28] ack. [12:29] nik90: ok, so the icon sizes are frozen 2GU, and to this I add 2*1.5GU margins, so all together the action width should be 5GU, that should be enough to aim the action [12:29] zsombi: Does one need to press on the icon or the whole action to trigger it? [12:29] nik90:nope, the entire area is used for that [12:30] if it is the whole area, then that's definitely not happening on the Nexus 4. Or may it is triggering the action, but its get stolen by something else [12:30] nik90: hmm, and Page doesn't have any Flickable... [12:31] yeah i tried to make the sample app as simple as possible. Were you able to reproduce this on your krillin? [12:31] nik90: hat I noticed is that in case you tapon the action, and you move your finger slightly downwards in a Flickable, the flickable may close the action panel [12:31] nik90: not yet, I am flashing that now [12:32] I was also using it for feeding the dog :) [12:32] haha ;) [12:34] even if that true (the finger moving slightly downward triggering the closing of the action panel), it is way too sensitive considering I didnt hit this issue before the resizing of the action width. [12:36] nik90: wth? my phone doesn't get detected over adb... [12:36] nik90: I thought it is flashing [12:37] zsombi: hmm..developer mode enabled? [12:37] well considering you started flashingn, i suppose it was enabled [12:37] nik90: I thought it did, but it doesn't [12:38] it doesn't even list up in the USB.... perhaps my cable got broken... [12:38] could be [12:39] f*** and I don't have any other cable with me.... DAMN [13:03] zsombi Hey :-) === Guest40 is now known as jamie-y === jamie-y is now known as jamiey [13:12] jamiey: hello, so the prob seems to be that the size for the actions in ListItems is not enough on touch [13:12] jamiey: nik90 just filed a new bug for that #1486008 [13:12] bug 1486008 [13:12] bug 1486008 in ubuntu-ui-toolkit (Ubuntu) "leading actions width is too small making it very difficult to press" [Undecided,New] https://launchpad.net/bugs/1486008 [13:14] jamiey: so we need a new size... so far was teh same as the height of the ListItem, which in case the ListItem's heigth changed, it got adjusted as well, ending up having th etrailing actions occupying the entire ListItem area :) [13:46] zsombi Cool - thanks for the heads up. I'll take a look at this bug === Guest40 is now known as jamiey === chihchun is now known as chihchun_afk === ogra_` is now known as ogra_ === dholbach_ is now known as dholbach [16:21] kenvandine, Hey, i'm trying to do content-hub export support for music, I want it so that another app can select import from Music. I've added source as music to the json and it appears in the list. But when you select the app i'm trying to work out what should then be called, would it be ContentHub.onExportRequested or something else? [16:22] yes [16:22] onExportRequested [16:23] so when you get that signal, get the transfer [16:23] kenvandine, should i need to set peers etc? or just load it with ContentItems ? [16:23] then provide the picking UI, and charge the transfer with the selected music, but you have to create a ContentItem for each song [16:23] just load the content items [16:24] ok thanks, i'll see how far i get :-) [16:24] activeTransfer.items = someListOfContentItems [16:26] ahayzen, http://bazaar.launchpad.net/~ken-vandine/+junk/hub-exporter/view/head:/hub-exporter.qml#L35 === alexabreu is now known as alex-abreu [16:27] thanks :-) [16:28] ahayzen, also http://bazaar.launchpad.net/~ken-vandine/+junk/hub-exporter/view/head:/hub-exporter.qml#L424 [16:28] and also line 453 is where it listens for state changes [16:28] and calls __exportItems [16:28] :-) i have yet to see it hitting onExportRequested so i wonder if i'm missing something else [16:28] * ahayzen investigates [16:29] are you running it on the device? [16:29] and if not, are you sure the appId is set right? [16:29] on device [16:29] and installed as a click right? [16:30] yup via QtC [16:30] ok [16:30] to debug [16:30] it appears in the picker list to my hacked hub-importer [16:30] you could run the service in debug mode [16:30] killall content-hub-service && CONTENT_HUB_LOGGING_LEVEL=2 content-hub-service [16:30] on the device [16:31] actually i don't think killall is on the device, just kill the process :) [16:31] and restart your apps [16:31] that'll be very verbose [16:31] ahayzen, feel free to pastebin that and i can take a look [16:31] ok gimme a sec :-) [16:33] kenvandine, thats what happens http://pastebin.ubuntu.com/12119146/ [16:35] ahayzen, and it is launching the music-app right? [16:35] yup [16:35] anything else logged after what you pasted? [16:35] looks like it's cut off [16:36] nope [16:37] maybe i need todo more in the music-app code before stuff will start working, i was just expecting it to hit my console.debug() line in the onExportRequested [16:39] well... i'm suspisious here [16:39] it sees the handler's active [16:39] oh... maybe that's all we expect until it gets the onExportRequested [16:39] mzanetti, are you here ? [16:40] ahayzen, can you pastebin your code where you listen for onExportRequested? [16:40] kenvandine, http://pastebin.ubuntu.com/12119192/ [16:40] L53 [16:42] kenvandine, i was expecting it to hit the debug on L56 but i don't see that in my console :-/ [16:43] ahayzen, yeah, i would too [16:43] com.ubuntu.music_music_2.2.latest [16:43] that's a valid version? [16:43] i guess it must be [16:44] hmm getting denials i think [16:44] ah ha! [16:44] http://pastebin.ubuntu.com/12119220/ [16:44] * kenvandine should always ask that first :) [16:44] content_exchange_source [16:44] that appid is what QtC makes [16:44] you need that policy [16:44] ooooo hah :-) [16:45] sorry i didn't catch that quicker [16:45] my mind was in another land :) [16:45] no worries i should have thought of that :-) [16:48] hmmm still getting Aug 18 17:48:08 ubuntu-phablet dbus[2059]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/transfers/com_2eubuntu_2emusic_5fmusic_5f2_2e2_2elatest/export/4" interface="com.ubuntu.content.dbus.Transfer" member="State" mask="send" name="com.ubuntu.content.dbus.Service" pid=839 label="com.ubuntu.music_music_2.2.latest" peer_pid=30595 peer_label="unconfined" [16:59] ahayzen: hey, thnx for working on the contenthub-export source. When do you guys plan on releasing the next music-app update? [17:06] ahayzen, sometimes if the version doesn't change and the policy does, it doesn't seem to update the profile [17:06] ahayzen, reboot the device to be sure [17:06] kenvandine, okies i'll try that :-) [17:06] i think that updates the profiles again [17:07] nik90, not sure when we are planning on releasing will probably be in the next few weeks if something lands that is worth it [17:07] nik90, we've got the new listitems code waiting to land assuming the fixes land in ota6 [17:08] NymeriaFr, hey [17:08] what up? [17:11] kenvandine, hmm i still get the denial :-/ and this is my apparmor http://pastebin.ubuntu.com/12119385/ [17:12] that should be good [17:12] why does it say peer_label="unconfined"? apparmor="DENIED" operation="dbus_method_call" bus="session" path="/transfers/com_2eubuntu_2emusic_5fmusic_5f2_2e2_2elatest/export/1" interface="com.ubuntu.content.dbus.Transfer" member="State" mask="send" name="com.ubuntu.content.dbus.Service" pid=6479 label="com.ubuntu.music_music_2.2.latest" peer_pid=6305 peer_label="unconfined" [17:13] ahayzen: ok, cool. I will also try to work on the custom alarms feature at that time. All I would need is music-app click which I can get from trunk and use that for testing. [17:14] nik90, when i get the MP up i'll ping you and you can test it from your end :-) [17:14] ahayzen, try this [17:15] grep content /var/lib/apparmor/profiles/click_com.ubuntu.music_music_2.2.latest [17:15] ahayzen: I will try to get my clock-app MP rdy by then :-). Let's sync up then for testing. [17:15] nik90, \o/ [17:15] kenvandine, http://pastebin.ubuntu.com/12119401/ [17:16] ahayzen, actually, pastebin the whole file [17:16] kenvandine http://pastebin.ubuntu.com/12119408/ [17:17] ahayzen, ok, that doesn't look like it includes content_exchange_source [17:18] hmm [17:18] but its in http://pastebin.ubuntu.com/12119385/ [17:18] unless when you install via QtC something weird happens [17:19] * ahayzen tries to remember how to manually make the profiles again [17:19] yeah, well i've had problems when the version number wasn't bumped with it not updating the profile [17:19] you should have something like this [17:19] interface=com.ubuntu.content.dbus.Transfer [17:19] path=/transfers/@{APP_ID_DBUS}/export/* [17:19] in your profile [17:20] ah i see [17:20] L529 has something like that ? [17:21] that's import [17:21] you need an export one too [17:21] ah :-) [17:21] to be a source [17:21] that's what content_exchange_source gives you [17:21] so the profile didn't get refreshed [17:23] kenvandine, yey ok i installed using my alternate bzr rev linked method and it now comes up with transfer in progress :-) [17:24] woot [17:24] so looks like your right about the profile not being refreshed :-) [17:24] ahayzen, oh... music-app is showing the transfer hint? [17:24] you should not do that for exports [17:25] yeah thats probably because i just hijacked the import code :-) [17:25] but the fact it is doing *something* is progress, now to make the UI etc work :-) [17:25] indeed [17:26] don't use activeTransfer for the export [17:26] since the transfer hint is wired to that [17:26] add another [17:26] nope gonna split into active{Import,Export}Transfer [17:26] like curTransfer :) [17:26] ok [17:26] or that [17:26] cool, so you are unblocked :) [17:26] yup thanks for your help as always :-) [17:26] anytime! [17:27] mzanetti, I've try to use your application (atuhentificator) [17:27] i've an error with libs += -lv4l2 [17:28] library is not found [17:28] mzanetti, any idea where the error could be located [17:28] ? [18:07] nik90, you would just want a single selection export right ? [18:16] ahayzen: yes I guess so [18:17] ahayzen: For initial implementation of the feature that would suffice [18:20] nik90, coolio i'll probably build a single and multi view anyway :-) just trying to figure out how it will look [18:22] nik90, we should probably try and do a content-hub import for the ringtone at the same time :-) or persuade someone to link up [18:30] ahayzen: that would be seb128 from system-settings app I suppose for the ringtone part. But yes, the next cool feature for OTA-7 ;) [18:30] :-) [18:36] *70 [21:03] kenvandine, after the app has completed the content-hub transfer would it normally close itself? As at the moment it appears to get sent the OOM or something ? [21:04] yes [21:04] it should quit [21:04] ok [21:04] via ubuntu-app-launch [21:04] only when the export is requested by another app [21:04] oh not by me? [21:04] if you initiate the export, like "open with" from within music-app [21:04] then it shouldn't quit [21:04] what happens at the moment is the app stops, but it is still in the spread [21:04] ah [21:04] i'm doing it via your hub-importer [21:04] that's a bug in the shell :) [21:05] ignore that [21:05] it's quit [21:05] but the spread is wrong [21:05] ok :-) .. so if they are playing music and then request an export it is going to stop playing music i guess [21:05] ah [21:05] slight side affect but can't really see an easy way around that [21:05] no, it'll only quit if it was started to complete the transfer [21:05] ooo [21:05] * ahayzen tries [21:05] otherwise it'll stay running [21:07] kenvandine, your correct :-) cool it all works \o/ [21:07] :-D [21:18] nik90, if you want a branch to test against, I have this under review with Victor, https://code.launchpad.net/~ahayzen/music-app/fix-1357324-content-hub-source [21:18] nik90, please comment on the MP if you find any issues :-) [21:22] ahayzen: thnx, I haven't started on my hub-importer, and considering this is pretty much like the 2nd time I'm dabbling with content-hub, I am bound to go slow :P [21:23] ahayzen: Was the documentation at developer.ubuntu.com sufficient for creating a content-hub import for you? [21:51] nik90, IIRC it was, you can copy/use our code as reference if you want its all in one file... [21:52] nik90, http://bazaar.launchpad.net/~music-app-dev/music-app/refactor/view/head:/app/components/Helpers/ContentHubHelper.qml other than the waits for mediascanner2 most of that should be self explanatory [21:52] ahayzen: thnx will take a look. [21:53] nik90, oh but we don't have a picker which you'll need... [21:54] nik90, https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Content.index/ ...and look at the example here bazaar.launchpad.net/~ken-vandine/+junk/hub-importer/ === salem_` is now known as _salem [21:54] (which i have a patched one todo music if you look at the MR) [21:54] ahayzen: isn't the picker UI shown by the exporter app? [21:55] if you were doing open with yes [21:55] but you'll be doing import from effectively ? [21:55] I don't much about content-hub to answer that question ;) [21:55] so you'll go to the clock select pick ringtone which then shows the picker and then starts music [21:56] hehe :-) [21:56] ahayzen: so in the alarm sound page, user will click "custom sound" button which should show the picker (with all apps exporting music) and then be directed to the exporter app. [21:56] nik90, if you try lp:~ahayzen/music-app/fix-1357324-content-hub-source and lp:~ahayzen/+junk/hub-importer-music-patches together you can see how that flow works (see the MR for intructions) [21:56] nik90, yup [21:57] so was that the picker you were referring to? [21:57] yeah thats the picker sorry should have said peer picker ;-) [21:57] ok I will try out your branches and some sample apps to wrap my head. [21:58] :-) let me know if you need any extra info [21:58] sure, thnx for your help [21:58] no problem, it'll be great once it is done :-) been on my list for *ages* [21:59] so does the music-file get copied into clock app's directory? [21:59] and that new music-file path will be used to point to the alarm sound [21:59] into a /HubIncoming/ in the cache IIRC [21:59] and then you can do .move() to somewhere else you have write permission [22:00] and then yeah you can point media-hub/whatever at that path [22:00] ok [22:00] I need to make sure that when the user picks a new custom alarm sound, the old alarm sounds are deleted from the clock app folder [22:01] which might require me to do c++ plugin unless content-hub has a delete() function [22:01] nik90, http://bazaar.launchpad.net/~music-app-dev/music-app/refactor/view/head:/app/components/Helpers/ContentHubHelper.qml#L96 is where we do our move [22:01] how many custom sound(s) are you having? [22:02] if your only having 1 you could just always put into the same location ? and overwrite ? [22:02] assuming the move would work with that, which it may not [22:02] well I want to ensure there is always only 1 custom sound both in the folder and in the UI. [22:03] I will see what happens..I am probably overthinking this at the moment. [22:03] heh :-) [23:17] ahayzen: hey, should importer apps also have a separate content-hub.json file? Or is that needed only for exporter-apps? [23:18] nik90, you can put them in the same? [23:18] nik90, http://bazaar.launchpad.net/~ahayzen/music-app/fix-1357324-content-hub-source/view/head:/music-app-content.json is what i've proposed for music [23:18] nik90, oh or do you mean do you even need it for your usecase ? [23:19] yeah I saw music-app-content.json... [23:19] yes ^^ [23:19] as a importer app, do I need such a separate json file? [23:19] i think you would need it if you wanted to support "open with" which you probably don't [23:19] so you probably just need the apparmor [23:20] but kenvandine probably has a better answer :-) [23:20] right now, I was able to create a Peer Picker Page where it shows "FileManager" and "Music App". Somehow pressing the cancel button in that page does nothing. [23:20] nik90, as in open with from another application to yours [23:20] but I am getting started slowly [23:20] :-) [23:20] ah ok..yeah I don't want any other app to pick clock app as a destination I suppose [23:21] yeah i find things happen slowly and then suddenly it all comes together once you understand whats going on aha [23:21] ;) [23:21] nik90, yeah i think thats what it is for, try without it for now, just ensure you have the apparmor policy :-) [23:21] Yeah I updated the policy [23:35] ahayzen: I am going to read your backlog conversation with kenvandine since I got a apparmor denial as well :) ... and I made sure to add content_exchange policy. ;) [23:35] nik90, did you restart your device? [23:35] if you have the same rev number if doesn't refresh the policy [23:35] ahayzen: same rev number to the app already installed on the device? [23:36] eg if you've been using QtC which does version.latest [23:36] no like if you've already deployed an app with that version since a reboot it seems [23:36] well we adjusted our cmake files to create com.ubuntu.clock_clock_3.5.339 [23:36] hehe [23:36] I guess it stays at 339 until I bump rev number [23:37] yeah i would try a reboot to be sure [23:37] so do I need to reboot after every launch on the device? [23:37] no once it has done it once then it stores the correct one :-) [23:37] ah ok [23:37] one more thing [23:37] in the music-hub-importer sample app that you gave, did you notice that the "cancel" button shown in the peer picker page does not work? [23:38] it is hidden behind the application toolbar [23:38] i think i did, but the back button from the edgy legacy toolbar did :-) [23:38] yeah exactly...it is just that users might press the cancel button instead of the header back button [23:38] yeah you should probably use a more updated UI [23:39] that is just a reference app for import/export Ken made that i've used for reference whenever i do content-hub stuff :-) [23:39] I am just wondering how to hide that cancel button or make it work [23:39] cancelling should do something [23:39] nik90, eg the Telegram app doesn't suffer that issue IIRC ? [23:40] * nik90 checks [23:41] I'm restarting device since telegram is malfunctioning and unity8 edge gestures dont work. [23:41] also noticed I imported content hub 0.1 instead of 1.1 [23:41] that could be it (hopefully( [23:41] ah maybe [23:42] * ahayzen checks what version he used [23:42] 1.1 :-) [23:42] Ofc u did...u r Mr.Perfect :-) [23:43] heh i have a checklist of things to check ;-) [23:43] haha [23:44] YES! 1.1 removes the cancel button :P [23:44] win! \o/