/srv/irclogs.ubuntu.com/2015/04/21/#ubuntu-app-devel.txt

akiva-thinkpadhi all04:05
=== ara is now known as Guest22932
dholbachgood morning07:08
=== chriadam is now known as chriadam|away
dholbachdpm, thanks for following up on the help-app bug08:05
dholbachI passed it on to IS08:05
dholbachand thanks for escalating the issue08:05
dpmdholbach, no worries :)08:06
dpmthanks for following it through to publication!08:06
dholbach:)08:06
dpmdholbach, davidcalle, while reviewing, I did some minor changes on https://developer.ubuntu.com/en/snappy/guides/webdm/ too08:45
dpmI've been moving the important notes I've seen in places, so that they are in visible boxes08:45
dpmI'll stop reviewing now, will talk to you in a few mins in the call08:46
dholbachthanks a lot dpm08:46
dholbachwebdm might not be part of the release on thursday08:46
dholbachso we could probably deemphasise it somewhat08:46
dholbachor maybe let's move to #snappy08:47
dpmah, good point08:47
dpmdavidcalle, can you join us on #snappy too?08:47
uglyandstupidhey hey08:55
uglyandstupidAnyone know if it's already planned to handle dynamic language change for the translated text please ?08:56
nerochiarooSoMoN: if google is our default search engine, shouldn't we ship at least an opensearch xml file for it ?09:47
oSoMoNnerochiaro, we should, although atm custom search engine definitions are searched only in ~/.local/share/webbrowser-app/searchengines/, and we can’t install files there09:48
oSoMoNnerochiaro, we’ll need a way to install definitions system-wide, and have the code that handles that search for definitions in both places09:49
oSoMoNnerochiaro, in the meantime, default values for google are hardcoded in config.h.in09:49
nerochiarooSoMoN: apps usually provide their default files in /usr/share/ and then allow overriding or adding more via .local/share or something like that09:49
nerochiarooSoMoN: we should probably do that for the opensearch files09:50
oSoMoNyeah, that’s what we should be doing (and what we will be doing, when we get to it)09:50
nerochiarooSoMoN: so not part of what i should be doing now ?09:50
oSoMoNnerochiaro, I don’t think so, that’s out of scope09:50
nerochiarooSoMoN: ok09:50
=== MacSlow is now known as MacSlow|lunch
kalikianat1mp: review? https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/textDocument/+merge/25279810:53
=== aaron__ is now known as ahoneybun
mhall119kalikiana: please register for http://summit.ubuntu.com/uos-1505/ so I can promote you to a track lead11:22
kalikianaaha so now registration is open11:40
kalikianawill do11:40
kalikianamhall119: done11:41
mhall119thanks kalikiana11:45
=== MacSlow|lunch is now known as MacSlow
=== chrisccoulson_ is now known as chrisccoulson
=== greyback__ is now known as greyback
=== _salem is now known as salem_
SPEckHy all13:13
SPEckCAn combody help me to fix my computer to write app for Ubuntu Touch13:13
Mirvdpm: is there a sort of guide of what you were doing with dekko? ie entering click chroot, building something into .click in there? I'd be interested.13:33
Mirvbasically lower level usage of SDK but for apps that are not strictly created with the SDK13:34
dpmMirv, it should use the standard SDK procedures, at least that's what I did. So here's how it worked (links to documentation to follow)13:35
dpm1. Had the SDK already set up with a 15.04 armhf click chroot13:35
dpm2. Checked out dekko -> http://pastebin.ubuntu.com/10861446/13:36
Mirv1. check, done via SDK :)13:36
dpm3. Opened its top CMakeLists.txt file13:36
dpm4. When prompted for a kit on Qt Creator, I chose the one I've got assigned to that click chroot in 1. (I've called my kit "Phone")13:36
dpm5. Ensure your click chroot has got this dependencies installed:13:37
dpm- libqt5webkit513:37
dpm- qttools5-dev-tools (that's the one we needed to have installed in the host arch )13:37
Mirvoh, 3. I didn't realize, too obvious13:38
dpm6. Then under the Project tab, set this as the build options:  -DUBUNTU_CLICK_MODE=on -DCMAKE_INSTALL_PREFIX=/13:39
dpmMirv, actually, I've told you the wrong order, 5. (install chroot deps) should go before 3.13:40
dpmas otherwise cmake configuration will fail13:40
Mirvdpm: for my test I seemingly don't need it, but yes I found "Maintain" now. is it that if you install deps there they "stay" in that kit?13:41
dpmMirv, exactly13:41
DanChapmandpm, i've made it alot simpler now http://paste.ubuntu.com/10861469/ :-D13:42
Mirvdpm: this is so cool. even though this would fail miserably at the end, I had QtC do something with the project I'm testing on.13:42
dpmMirv, also if your project's cmake config fails, you don't need to reload the project every time. On the project explorer, you can right-click on the top item in the tree (generally the project name) and choose the option "Run cmake". That'll re-run cmake, as the name says ;)13:43
Mirvdpm: that 6. sounds like magical ingredient that would be valuable to be somewhere visible, and it probably is too already somwhere?13:43
dpmMirv, unfortunately, that's the only place you can do that, I agree that it's a bit hidden13:43
dpmDanChapman, wohoo! :-)13:44
Mirvdpm: I mean somewhere in docs, but I agree it'd be cool to have "clickify cmake" button or such13:44
dpmMirv, ah, it's in the docs: https://developer.ubuntu.com/en/apps/sdk/tutorials/building-cross-architecture-click-applications/13:45
Mirvdpm: I don't see UBUNTU_CLICK_MODE or CMAKE_INSTALL_PREFIX guided in there? or is either of them dekko specific?13:47
dpmMirv, yes, it's dekko-specific, but DanChapman was talking about adding this to the cmake file, so that you don't have to specify it every time you check dekko out13:48
Mirvdpm: ah, ok. but you'd probably need the install prefix anyway if you had some other non-Ubuntuphone CMake project you'd want to try to "port"?13:50
DanChapmanMirv, one thing i will note. And i've never seen documentatin for is the magin UBUNTU_PROJECT_TYPE and UBUNTU_MANIFEST_PATH cmake variables. You can't build clicks or run on device without them13:51
dpmMirv, the idea is that you put it on the cmake file so that it's predefined, but you can always override it if you specify it as -D on the build13:51
DanChapmans/magin/magic13:51
MirvDanChapman: I see, thanks a lot! dekko seems to be a good source of info :)13:54
dpmMirv, other apps that you can try for your tests are lp:reminders-app and lp:ubuntu-clock-app, they've also got good cmake setups that can be used as examples13:55
MirvI started https://wiki.ubuntu.com/Touch/Apps/Porting for my notes13:55
MirvI would have started looking at this earlier but click chroots are simply not working on my vivid machine, so I'm now using 14.04 virtual machine13:58
_honning_Hi all, i am developing an app for Ubuntu Phone. But I am having trouble preventing the screen from dimming/locking while doing a simple animation on html5.15:43
_honning_i was wondering if anybody has been able to turn off  the screen dimming/lock on a html5 app or in a qml app?15:44
nik90_honning_: curious but how long does the animation run for? since the screen starts dimming only after a minute I guess15:44
nik90_honning_: apps (qml and html5) dont have permission to prevent screen dimming (yet) unless they are playing a video15:44
ogra_and there is no way to stop the dimming from an app15:45
_honning_yes, it runs for 8 minutes15:45
_honning_so the screen lock turns on after 1 minute if i dont touch the screen15:45
_honning_nike98: ok, thanks for the information15:45
_honning_i was hoping something like in android: getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);15:46
_honning_existed but i havent found it....15:46
ogra_no, it doesnt15:46
_honning_could i run a video with just the background color as a hack?15:46
nik90_honning_: right now the ubuntu touch platform rules are more strict than android and as such doesn't allow apps to keep screen on or keep polling in the background15:47
ogra_you would have to embed it and hook it up to the media-hub ...15:47
* ogra_ has never used HTML5 for apps ... not sure the integration goes that deep actually15:47
_honning_nik90 and ogra: ok, thanks very much for the information, i will try to see what i can get working15:49
nik90_honning_: yw15:49
mcphailnik90: just looking at your post about UCS. I like the idea. Have you made progress? Could this be managed as a simple git repo?15:49
nik90mcphail: hi..we (myself and stuart) are intending ucs to be more like npm, pip etc where installing something is as easy "ucs install component-name"15:52
nik90mcphail: just a few days back, stuart added the community channel where *anyone* can upload their component to the store without any sort of review process and maintain it themselves.15:52
mcphailnik90: you have a working prototype?15:55
nik90mcphail: yeah for quite a while now. You can find the necessary information at http://ubuntu-component-store.readthedocs.org/15:55
mcphailnik90: excellent. I'll check it out15:56
nik90mcphail: you will need to first install ucs in your system and then you can help test uploading a component to the store15:56
nik90mcphail: let us know how it goes and if anything seems confusing, we can improve those parts.15:56
mcphailnik90: will do. Thanks!15:58
* nik90 watches the community q&a16:06
mcphailnik90: do you have coding style guidelines for the UCS (tabs v spaces, camelCase or underscores etc)?16:21
nik90mcphail: for curated components or community components?16:22
mcphailnik90: either. Presumably community components should aspire to curated status?16:23
nik90mcphail: curated components should preferably stick to a common coding style guidelines but I haven't come to decide on that yet. We were first concentrating on getting the infrastructure up and ready.16:23
mcphailnik90: so the "reformat qml" option in the SDK would be acceptable?16:23
nik90mcphail: yes that is fine16:24
* mcphail hates camelCase16:24
nik90mcphail: basically components in the curated store are intended to be candidates for inclusion in the ubuntu-sdk itself..that's our goal..and the ucs curated store sort of is a temporary holding place to show the SDK devs that this is a good component which is liked by the community.16:26
nik90mcphail: so some components that are just meant to make life easier like a blurred background header which doesnt make sense to be in the SDK is better of in the community store imo.16:27
nik90mcphail: but yet components in both the curated and community store should strive to provide a good experience to app devs by providing api documentation, tests etc16:27
om26ert1mp, Hi!17:42
om26ert1mp, have the header changed recently ?17:43
=== chihchun is now known as chihchun_afk
t1mpom26er: yes18:01
t1mpom26er: a lot of changes. What are you interested in?18:01
om26ert1mp, ah, good. I love them :)18:02
om26ert1mp, I was a testing a silo, just wanted to make sure it was not regressing something18:02
t1mpom26er: ah, you are talking about the updated visuals? Yes those changes landed today.18:02
t1mpom26er: there will be more :)18:02
om26ert1mp, do you have designs for the improvements somewhere ? or is that tracked in bug reports ?18:03
t1mpom26er: https://docs.google.com/a/canonical.com/presentation/d/1wZ09SVZPwwJOccG4Rqu5JaHDuWw051oSKjf0uJHUyO8/edit#slide=id.g8d903971d_01018:05
nik90t1mp: are those new header visuals part of 1.2?18:50
* nik90 hopes they are ... pls pls pls18:50
SturmFlutDoes anybody use the SDK on an Ubuntu 15.04 desktop? It seems quite broken for me, from incorrect font sizes to crashing tools.19:32
nik90SturmFlut: I have a development 15.04 laptop that seems to be fine with the latest updates.19:44
nik90SturmFlut: when did these issues start for you?19:44
SturmFlutnik90: They started immediately after upgrading to 15.04 a couple of days ago. When starting the SDK I always immediately get a crash report from the click tool. The main UI is fine, but all the Qt file dialogs have way too large fonts. I just created a new "QML with C++ plugin" project and qmlpluginscan crashes on every run.19:47
nik90SturmFlut: I have noticed the crash report from the click tool, but tbh I occasionally do get that on my main 14.04 machine as well19:48
SturmFlutnik90: I already tried deleting all the configuration files, to no avail.19:48
* nik90 checks the Qt file dialogs19:48
nik90hmm it looks normal to me19:49
SturmFlutnik90: http://i.imgur.com/OZdID0j.png19:50
nik90oh..that's bad19:51
SturmFlutnik90: Haha, it's not just the Qt file dialogs, but also some buttons and popups19:55
SturmFlutAt one point a popup fills nearly all of my FullHD screen19:55
nik90SturmFlut: may be somehow during the upgrade the Qt theme display ratio broke?19:56
SturmFlutnik90: Yes, something like that. But it looks like all other Qt applications, e.g. qbittorrent, are not affected. Just Qt Creator.19:57
SturmFlutArgh, not again20:11
SturmFlutsturmflut@fire:~$ mount | grep schroot | wc -l20:11
SturmFlut5620:11
rickspencer3does anyone else accidentally close the whole emulator sometimes when they are developing?20:19
nik90rickspencer3: yeah I have done that a couple of times...nowadays I develop using the phone instead20:20
rickspencer3I guess you never accidentally throw away your phone :)20:20
nik90hehe no..although I do get distracted and start playing with other apps during my testing :P20:21
mcphailI've created a type "AutoRangePicker.qml" as per http://paste.ubuntu.com/10863152/ . When I add it to a Row it clamps to the left rather than being laid out correctly. What am I doing wrong?20:37
rickspencer3does anyone have a good icon for "rename"?20:39
nik90mcphail: the picker clamps to the left? or the parent item?20:49
mcphailnik90: actually not sure, tbh. I have a row with Picker, Picker, Picker then AutoRangePicker and it overlays the first Picker...20:50
nik90mcphail: change item to rectangle with color "lightgreen" or something to see what's happening20:51
nik90and try anchoring the picker to the bounds of its parent..anchors.fill: parent20:51
=== salem_ is now known as _salem
mcphailnik90: context (for what it's worth: only experimenting) at http://paste.ubuntu.com/10863320/ . Adding anchors.fill: parent only breaks the row and gets the console grumbling...20:57
mcphailnik90: hmm - if I add "width: picker.width height: picker.height" it works. Oh well21:29
nik90mcphail: hmm yes..otherwise items has 0 width and height..which is why they were overlapping one other21:30
nik90mcphail: tht's why I usually test with rectangle first before switching to item21:30
mcphailnik90: yes, that helped. Thanks!21:31
nik90yw21:32
aquariusI'm trying to build an app (Beru, as it happens) for the emulator, in Ubuntu SDK. The build fails with error "error: poppler/qt5/poppler-qt5.h: No such file or directory". I assumed this meant that the appropriate library wasn't in the chroot that the build uses, but I've "Manage"d that chroot and apt-get install'ed the package and it still isn't working. What else might I need to do?23:13
aquariusIn particular, /usr/include/poppler/qt5/poppler-qt5.h exists in the chroot.23:15
aquariusI think I'm changing the correct chroot, but how might I find out if I'm wrong?23:15
aquarius(note: in Ubuntu SDK, under Build Environment, PATH is set to /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-i386... and /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-i386/usr/include/poppler/qt5/poppler-qt5.h exists, so I'm pretty sure that's right.23:17
nik90aquarius: hey, do you want to host a session in UOS May 5th-7th about UCS with regards to the new curated and community channels?23:18
aquariusnik90, I should really, shouldn't I? Sure, why not, let me go and propose a session.23:19
aquariushowever, in return you have to help me with my Dummies Guide To CMake question above :)23:19
nik90aquarius: lol23:20
nik90aquarius: considering that you have installed poppler-qt5 in the chroot, I am failing to see why it is failing to build.23:22
aquariusnik90, me too23:22
aquariusI mean, I'm not brilliant at this stuff, but that really feels like it ought to work :)23:22
nik90aquarius: I have a hunch..23:23
popeyyou building an armhf binary?23:23
popeyin an armhf chroot? aquarius ^?23:23
nik90above the green play button, where you choose the kit stuff, see if there is another configuration you can run23:23
nik90also try what popey said..may be poppler-qt5 build error has to do with i386 and requires additional packages23:24
popeyhttp://paste.ubuntu.com/10863817/23:24
popeythats what I have in my chroot23:24
popeynote libpoppler-qt5-1:armhf23:25
nik90hmm true23:25
nik90aquarius: ^^23:25
aquariuspopey, ah, this is an i386 chroot, or for the emulator23:25
aquariusnik90, http://summit.ubuntu.com/uos-1505/meeting/22439/ubuntu-component-store/ -- it hasn't shown up in the schedule yet, presumably because it needs to be approved23:26
popeyyou're building an i386 binary in an i386 chroot for the i386 emulator, right?23:26
nik90aquarius: yup, time to test if I am the UOS app lead23:26
popeyaquarius: approved23:26
popeyoops23:26
aquariuspopey, I certainly *believe* that that's what I'm doing :)23:26
popeyqtdeclarative5-poppler1.0:i38623:27
popeydo you have that?23:27
aquariusah, wait, hang on23:27
aquariusdo I have to install :i386 versions of the packages?23:27
popeynot if it's an i386 chroot23:27
aquariusI'm in an i386 chroot! does it not know that?23:27
popeyit will do that by default23:27
aquariusoh, good, OK :)23:27
popeyignore that bit23:27
popeyjust install qtdeclarative5-poppler1.023:27
aquariusI have23:28
aquariusbut...23:28
popey(mine is a 14.10 chroot, you may have a newer poppler)23:28
nik90aquarius: I see your session. You got any date and time preference?23:28
aquariusnik90, not tuesday evening UK time23:29
aquariusother than that, rock and roll.23:29
aquariuspopey, yep, got that23:29
nik90aquarius: at the moment no session has been scheduled..so all slots free :)23:29
popeyaquarius: lemme try, what we building?23:29
aquariushttp://pastebin.ubuntu.com/10863833/23:29
aquariuspopey, beru23:29
popeylink?23:30
aquariuspopey, I checked it out of github (https://github.com/rschroll/beru), opened it in Ubuntu SDK (by choosing its cmakefile.txt), chose my emulator build target (which I know works), and... got this error.23:30
popeylemme try23:30
popeywhat version chroot?23:31
aquariusannoyingly I can't build it for the desktop because it now depends on a newer version of the SDK than 14.04 has :(23:31
aquariusotherwise I wouldn't bother with all this emulator fannying about :)23:31
nik90aquarius: I scheduled it for wednesday 18:00 UTC23:31
aquariusnice one nik9023:32
aquariusI have added the ical for UOS to my calendar, so I shouldn't miss anything23:32
nik90popey: btw I doubt we need a dedicated clock app session. No idea what to present/talk about there23:32
aquariusI assume google calendar re-polls it every now and again :)23:32
nik90aquarius: it should23:33
popeywell, i added one for each core app23:33
nik90aquarius: either way when I host it, I will bug you to join it :P23:33
* aquarius laughs23:33
aquariusnik90, feel free to edit the session description if you think it should be different23:34
* nik90 is annoyed that people keep rating clock 1-2 star after complaining about missing timer/stopwatch23:36
nik90aquarius: sure..will go through it with a fresh mind tomorrow23:36
popeyhmm23:40
popeyaquarius: fails same way here23:41
popeyok, docviewer fails in the same way in the same chroot23:43
popeyaquarius: ooh23:54
popeybah23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!