/srv/irclogs.ubuntu.com/2015/06/09/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== afkthairus is now known as athairus
=== Ionic is now known as Guest67057
liuxg_I want to save some data when the application is closed. is there any such an event for me to catch?01:31
=== Guest67057 is now known as Ionic
=== chihchun_afk is now known as chihchun
dholbachgood morning07:17
dholbachdpm, I'd appreciate your feedback on https://lists.launchpad.net/ubuntu-phone/msg12954.html07:57
dpmdholbach, I'm on the fence on this one. Logically it would make sense to use u-a-d, but traffic pretty much died in favour of u-p08:07
dpmand I'm not sure if all experts will move to u-a-d08:07
dholbachnot move08:07
dholbachbut I think we could twist their arms into signing up for a low-traffic mailing list?08:07
dholbach... maybe08:08
dholbach:)08:08
dholbachhttps://strawpoll.me/4482403/r is the feedback I got on the list08:08
dpmyeah, got it on my screen now08:08
dpmdholbach, I guess we can just try, as it should not be too much effort updating developer.ubuntu.com/community to point to u-a-d, sending a "revival" e-mail to the list and getting the SDK guys to subscribe08:11
seb128dpm, dholbach: I think it would make sense, -phone has many details about the OS building part as well, it's likely that the people around atm are interested in that as well, but normal appdevs are probably not going to care about it08:15
dholbachbzoltan, not sure if you saw the conversation above: ^ - the buy-in of you guys would obviously be important as well08:16
dpmthanks for the feedback seb12808:17
* bzoltan reads the backlogs08:17
dholbachdpm, dpitkin's mail on the mailing list gave me the idea to try it again :)08:18
dholbach(I think we talked about this a while ago already)08:18
dholbachbzoltan, so... what do you think?08:42
dholbachbzoltan, the last 6-7 messages of scrollback would have been enough  :-P08:42
bzoltanLOL08:42
dholbach * bzoltan is already back in 2013.08:43
bzoltandholbach: why do not we merge the two lists?ű08:44
dholbachsignal/noise ratio for people who *just* want to write apps and don't care about how the OS is put together?08:45
dholbachand not everyone is used to 100+ mails per week on a list08:46
dholbachbzoltan, ^ :)09:02
dholbachwhat do you think?09:02
bzoltandholbach:  your concern is valid... I do not know the answer. Maybe mailing lists are not the best channels. G+, Facebook, Twitter?09:03
dholbachbzoltan, but who's going to monitor G+/FB/Twitter for questions and reply to them?09:06
bzoltandholbach: wait a sec :) Do we have an army of community engineers to respond to all questions on any channel. As I see we hardly have time and energy to respond to the askubuntu and irc questions.09:08
dholbachbzoltan, it's not that complicated I think09:09
bzoltandholbach:  the best would be if we could build a competent community team who could do it09:09
dholbachright now we get a bunch of questions about app development on the u-phone@ list09:09
bzoltandholbach: With all respect... I disagree :) I think it is very complicated.09:09
dholbachwhich is where we send people right now09:09
dholbachand they get overwhelmed09:10
dholbachu-app-devel@ is low traffic and we have it already09:10
dholbachso we'd just ask app developers with questions to ask there09:10
dholbach(... if we went with this plan)09:10
bzoltandholbach:  obviously if somebody is more into app development then a dedicated list is better.09:10
dholbachso it'd be the same questions, the same general amount of mail, but a more dedicated place for app developers09:11
dholbachbut it'd require a few people to sign up for 2 lists09:11
dholbachI'd say that the questions on askubuntu/fb/twitter/g+ are a separate thing09:11
dholbachand I don't mean to talk down the amount of questions you and your team generally get09:11
kbroulikwhere can my app write for caching? QStandardPaths cache location is inaccessible (~/.cache probably)09:13
kbroulik(and why isnt QStandardPaths updated to reflect this? :)09:13
DanChapmankbroulik: you need to append the applicationName to the standard path.09:16
DanChapman~/.cache/project.myname/09:16
kbroulikDanChapman: it does that automatically. on my desktop the path is ~/.cache/companyname/appname09:16
kbroulikbut QNetworkDiskCache complains it cannot write there09:17
DanChapmankbroulik: IIRC the application name needs to be in the format "appname.companyname" or "appname.developer"09:18
* DanChapman looks for the docs09:19
=== chriadam is now known as chriadam|away
DanChapmankbroulik: it also needs to match the "name" field in you manifest.json. The Runtime Environment section here https://developer.ubuntu.com/en/start/platform/guides/app-confinement/ has a good explanation09:23
dholbachpopey, how do you normally go about building the terminal click?09:24
kbroulikDanChapman: but shouldnt ubuntu phone provide a qstandardpaths impl that does that?09:24
popeydholbach: jenkins builds it09:25
dholbachah, ok, makes sense of course09:25
popeywhy?09:25
kbroulikon every other platform I tried (blackberry 10, ios, android, windows rt, ..) qstandardpath returns sensible values that are accessible09:25
popeydholbach: also using this script from DanChapman to build using a local click chroot, to make a fat package http://paste.ubuntu.com/11667958/09:26
popeydholbach: you could change line 11 to make it only do one arch09:26
dholbachok, I'll take a look at it - thanks!09:26
popeydholbach: got a moment for a packaging question? :)09:26
dholbachpopey, sure09:28
popeydholbach: do you have an armhf 15.04 click chroot handy?09:28
popeydholbach: grab lp:ubuntu-filemanager-app and try and build it in an armhf chroot09:28
popeyit fails because it needs libsmbclient, which if I try to install libsmbclient-dev:armhf it pulls in a bunch of other stuff, which is fair enough, but it still complains when building file manager09:29
popeyso basically, bzr branch lp:ubuntu-filemanager-app, and then navigate to that directory and run that fat package script.09:29
dholbachpopey, yes, updating it right now09:29
popeyI am wondering of samba has an issue with multi-arch09:29
popeyI can build file manager on my local pc natively as amd64, but i can't build using the click chroot09:30
popeytried all kinds of combinations of libsmbclient and samba and can't get the right voodoo09:30
* popey gets coffee09:33
DanChapmankbroulik: i've never really thought of it as an issue myself. But I can see it would be nice to have an impl that gives correct paths. Might be worth filing a feature request for it09:35
dholbachpopey, I looked into it just now, but I can't find the issue09:49
dholbachmaybe bring it up on ubuntu-devel-discuss@ or something?09:49
popeydholbach: it builds for you?09:49
dholbachno09:49
popeyoh, ok09:49
popeyhey sverzegnassi :)09:59
popeyi was just testing your zoom patch :)10:00
sverzegnassipopey: o/10:00
sverzegnassilooking forward to your review10:01
popeyWell, it certainly works. but I have the same issue you noticed, that it jumps sometimes10:03
ybonhumm, where do I change the manifest file in the new QTCreator^WUbutuSDK? :)10:20
ybonI think I remember it was on "Publish" some day10:21
davmor2popey: does it go like this https://www.youtube.com/watch?v=nOXRBK7EITI10:26
popeyzbenjamin: ^10:27
ybonAnyone knows from the top of their head which policy_version I should use when I'm on 15.04 framework?10:28
nik90ybon: 1.310:29
ybonthanks :)10:29
nik90ybon: fyi, when you change the framework to 15.04, the ubuntu sdk automatically changes the policy_version to 1.3 as well10:30
ybon:-1: error: security_policy_version_matches_framework (OSMTouch.json): 1.3 != 15.04 (ubuntu-core-15.04-dev1)10:30
ybonnik90: how do you change the framework? :)10:30
ybonI've made it by hand10:30
nik90ybon: ubuntu-core-15.04-dev1 is wrong10:30
nik90ybon: just open the manifest in qtc10:30
nik90using the open file dialog if not through the project tree10:30
ybonI can't find it on Ubuntu SDK10:30
ybonah10:31
ybonit doesn't appear on the project tree10:31
ybonbut let me open it :)10:31
nik90ybon: is it a cmake project?10:31
ybonno, still OSMTouch, basic QML10:31
ybonnik90: about the wrong framework, I've followed the link given by QTC with the error http://askubuntu.com/questions/460512/what-framework-should-i-use-in-my-manifest-file10:32
ybonwhich then point to an EvilDoc10:32
nik90ybon: well all projects regardless of whether they are basic qml are recommended to be transitioned to cmake or qmake project types10:32
ybonmaybe we should give this info to someone that this link isn't valida anymore10:32
ybonnik90: any "how to" around to do so?10:32
nik90ybon: that link states ubuntu core which != ubuntu touch10:33
nik90ubuntu core is snappy stuff10:33
nik90ybon: but either way it should be updated10:33
ybonyep10:33
nik90beuno, popey, bzoltan: Can you ensure the doc https://docs.google.com/spreadsheets/d/1t_JGpg4r8BLluzfzmqa-gAbcKUjKUOufSCTSdPpFc5g/edit#gid=0 is updated with the correct frameworks version pls. It seems people use that after looking at https://askubuntu.com/questions/460512/what-framework-should-i-use-in-my-manifest-file10:34
ybon(which is the link given with the error on QTCreator aka Ubuntu SDK)10:34
nik90ybon: as for the qmlproject to cmake project transition..I don't think there is a automatic way to do it..you will have to do it manually..but i guess that's a problem for another time10:36
ybonok10:36
ybonI'll add an issue for that for future me :)10:36
nik90:)10:37
dpmpopey, on terminal, how are we getting on in terms of having a converged version?10:41
popeydpm: since we talked yesterday?10:41
popeywhat are your expectations?10:41
lolekhello guys, I'm not sure this is the correct channel, but I'm having problems overriding default application for applicaiton/sql file type which is set to gedit. Does anyone knows anything about mime handling?10:42
dpmpopey, I don't mean snappyfying it, I mean only, is there anything specific to do (e.g. layout), or should the version on the phone just work as is? I couldn't remember if we discussed this specifically10:42
popeydpm: oh, i see. Yeah, I'm making notes of bugs and will file them in a batch. (once I figure out how to take screenshots on Unity8/Mir that actually _works_)10:43
popeydpm: we have a multi-arch click and yes it does "just work" but there are bugs of course :)10:44
dpmpopey, ok, so for terminal, in general, it's more about testing it and fixing potential bugs than new designs for the desktop, then?10:45
popeyyes10:45
dpmok, thanks10:45
popeyit only needs a few tweaks IMO10:45
popeyseems there's a few toolkit bugs too, but this build is super old, and if I update it, chances are I'll break it10:46
popeyhence waiting for the "fixes everything" snappy desktop build from the desktop team10:46
lolekhi David Planella :)10:47
popeyseb128: do you know if there is a plan to add keyboard options to system settings? Specifically autorepeat delay/speed?10:52
ybonnik90: which framework from the list do you suggest I use?10:55
yurau1504test10:56
ogra_failed10:56
nik90ybon: use ubuntu-sdk-15.04 with policy version 1.3 This should be supported in the upcoming OTA-410:56
ybonok thanks10:56
popey+110:56
ybonbut my phone seems to be still in 14.10 :p10:57
ybonother phones have switched usually?10:57
popeyOTA4 hasn't been released yet10:57
popeywhen it is, you'll bump from 14.10 to 15.0410:57
* ybon only updates when the phone ask for update10:57
ybonokay10:57
ybonbut then if I use 15.04, I'm not able to test on my phone right now ;)10:57
yboncould I switch to OTA-4 yet?10:58
nik90ybon: what phone is it? BQ?10:58
ybonnope, Nexus410:58
ybonthe same I've broken time ago10:58
ybonbut still working a bit to test10:58
nik90ybon: well if you switch over to ubuntu-touch/rc-proposed/ubuntu-developer10:58
nik90that should have OTA-410:58
ybonok10:58
nik90well it has vivid really10:58
ybonlet's do that so :)10:58
ybonahem http://askubuntu.com/questions/555004/having-problems-trying-to-switch-channels-on-nexus-4-utopic-to-14-09-ubuntu maybe I should wait then :p11:00
sturmflut2popey: Have you already got an answer regarding your e-mail about problems with ubuntu-filemanager-app and libsmbclient?11:01
popeyno11:03
popeysturmflut2: do you have any ideas? :)11:07
sturmflut2popey: Hmmm, I can't even get libsmbclient-dev:armhf installed in my ubuntu-sdk-15.04 chroot. It fails because of python2.7, I do an "apt-get -f install", but the latter only *seems* to fix the problem, without actually fixing it. libsmbclient-dev:armhf is still not installed11:07
popey:(11:08
popeyyou're right11:08
popeylooks like some kind of packaging issue11:08
popeyI am not convinced samba is multi-arch safe11:08
sturmflut2The problem is with python2.7, the post-install script of the python2.7-minimal package fails11:09
sturmflut2popey: Oh, I think I see something. The post-install script of the python2.7-minimal package tries to call /usr/bin/python2.7 to pre-process some files, but /usr/bin/python2.7 is an armhf binary and that one will probably never run inside the chroot because the host ist an amd64 machine11:13
=== MacSlow is now known as MacSlow|lunch
mcphailI've run into these python2.7 issues several times in chroots11:47
mcphailto get some -dev packages installed I've had to apt-get download then dpkg-deb --extract11:49
seb128popey, no idea, I mentioned those to mpt, up to design11:57
popeyseb128: okay, thanks!11:58
seb128popey, yw!11:58
seb128is anyone really changing those options?11:58
seb128I never touched that since I've a computer11:58
popeywell, there's two issues11:58
popey1) autorepeat doesn't work _at_ _all_11:59
popey2) no way to change those settings11:59
popey1) is more important :)11:59
seb128right11:59
seb128just trying to figure out how much the settings are needed11:59
seb128I never changed them nor know anyone who does afaik11:59
popeywell i only went looking for them, thinking it might be switched off11:59
popeyfiled bug 1463370 anyway12:00
ubot5bug 1463370 in unity8 (Ubuntu) "Keyboard autorepeat missing" [High,Confirmed] https://launchpad.net/bugs/146337012:00
seb128popey, thanks12:02
popeyfwiw, I never fiddle with those settings either12:02
seb128k, so just fixing the default behaviour should be good enough for most of us ;-)12:03
popeyya12:03
seb128that issue might be more a mir one that unity8, but I guess those teams are used to bounce bugs between projects ;-)12:06
popey:)12:08
popeymzanetti touched it last, out of my hands now :)12:09
mzanettiyeah... actually it's probably QtMir, the glue between mir and unity12:09
mzanettiI assigned it to daniel, he'll fix or dispatch it further12:09
mzanettiwhen he's back from holiday, that is12:10
kalikianazsombi: please take another look https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/darkBackgroundText/+merge/26064712:33
kalikianat1mp: would you review this? https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/unitTestApiCheck/+merge/26034812:33
* kalikiana feeling like the princess sitting on too many branches12:34
=== _salem is now known as salem_
kalikianawoot, new phone in the store http://store.bq.com/en/ubuntu-edition-e512:37
ogra_:D12:38
DanChapman\o/12:38
=== pat__ is now known as pmcgowan
dchmoin. I'm looking to port an erlang-based app to μTouch, is there a way to see what s/w is already "available"? basically is erlang apt-gettable in principle, to start with.12:40
dchI've not found this on the FAQ so far, sorry.12:40
kalikianadch: it's not part of the phone images, that means you need to bundle it. much like Python. there's bindings apparently https://github.com/krant/eqml though I haven't used them myself12:42
dchkalikiana: thats fine, AFAICT its an armfh arch so I'm confident building it from source should be fine.12:43
=== chihchun is now known as chihchun_afk
dchlikely I won't need the QT layer though this is background service stuff12:44
kalikianawhat kind of app is it?12:44
mcphaildch: background services aren't well supported just now12:44
dchkalikiana: its an implementation of a IETF transport protocol called PPSPP for streaming media. typical use case is to provide an additional URL handler to a browser or app.12:45
dchwe want to be able to send/recv arbitrary udp packets, incl multicast if connected to local wifi or lan (for MDNS style discovery)12:46
kalikianadch: right now you'll require a phone with an exception for the app from the life cycle management12:49
kalikianaout of the box no app can run unless the user is looking at it12:49
kalikiana(yet)12:50
mcphailnot quite true. You can exploit a hole in the lifecycle management, but this hole is likely to be fixed "soon'ish"12:50
dchkalikiana: ok, for the moment I can ignore the UI constraint, either wrap it in qt or some html5 bridge I guess.12:51
dchthanks, this is enough to go on for the moment12:52
kalikianamcphail: which one are you referring to? something in the browser engine?12:56
mcphailkalikiana: no - apps can run in background (or screen off) if they don't create a GUI. See my syncthing app in the store12:57
mcphailkalikiana: I believe there are plans to kill this behaviour12:58
mcphail(which makes me sad)12:58
=== MacSlow|lunch is now known as MacSlow
kbroulikDanChapman: docs say "Qt applications can find the values of the XDG directories by using the QStandardPaths API as well as QCoreApplication::applicationName" ← so perhaps because I'm manually setting a applicationName in my main breaks it?13:36
kalikianakbroulik: what's breaking exactly?13:42
kbroulikwhen I do QStandardPaths cachelocation, it returns "/home/phablet/.cache/foo with foo being my project name, but the specs say I can only write to ~/.cache/com.foo.bar (with that being the app id)13:43
kalikianakbroulik: would foo match your binary?13:45
kbroulikyes13:45
kalikianain that case it might be a race condition13:45
kalikianaat what point are you using the path?13:45
kbroulikon startup when the qml engine creates a NAM from my factory (I set a QNetworkDiskCache for it)13:46
=== chihchun_afk is now known as chihchun
zbenjaminybon: in case you did not find it yet: you need to open the manifest.json file like any other. Then you get the manifest editor13:49
ybonzbenjamin: thanks, nik90 told me that too, and it worked :)13:49
ybonzbenjamin: why not showing it in the files tree then?13:50
kbroulikkalikiana: when I do this app.setApplicationName(QString::fromLocal8Bit(qgetenv("APP_ID").constData()).split(QLatin1Char('_')).value(0)); ← then it works xd13:50
kalikianakbroulik: could you set it later? as a response to setting a qml property for example13:52
kalikianaor component completion13:52
kbroulikno13:52
kalikiananot sure what best to suggest as I don't really know your code13:52
kbroulik"The factory must be set before executing the engine."13:52
kalikianahmmmm13:53
kalikianakbroulik: and do you have to set the cache at that time?13:53
kalikianacould you wait before you store any files?13:53
kbroulikkalikiana: no13:56
=== chihchun is now known as chihchun_afk
zbenjaminybon: it should be shown in the files tree17:05
zbenjaminybon: what project type do you have17:05
ybonzbenjamin: where do I see that?17:09
nik90ybon: he means whether it is qmlproject or cmake or qmake17:16
ybonah, so I guess qmlproject17:18
=== oSoMoN_ is now known as oSoMoN
ahoneybunhttps://athoneycutt.wordpress.com/2015/06/09/apn-changes-for-ubuntu-touch/20:21
ahoneybunmy 2 cents20:21
zbenjaminybon: weird the qmlproject should show it ...20:23
ogra_ahoneybun, heh, you caused mpt to reconnect with your design suggestion :)20:24
ahoneybunogra_: right20:24
SturmFlutWhat's the difference between using "ubuntu-html5-app-launcher" and "webapp-container" for a HTML5 game? The former is the default when you create a new HTML5 project in Qt Creator, and it stutters heavily when running my game. The latter requires a change to the AppArmor profile, but then runs the game perfectly.20:43
SturmFlutOh, they're using completely different browser engines, aren't they20:49
nik90Elleo: I think we should allow people asking questions about podbird on our launchpad. Just saw a bug report which is more a question rather than a bug report.21:07
mivoligorpadovani: hi21:17
mivoligorpadovani: just wanted to let you know I didn't make anything for you today. I had some unexpected shopping journey and was working a bit on other project. Hopefully I'll show you something tomorrow :)21:21
=== gh is now known as Guest10037
jdstrandSturmFlut: this has some information: https://wiki.ubuntu.com/SecurityTeam/Specifications/WebAppsConfinement21:52
jdstrandSturmFlut: webapp-container is the correct one to use with new apps. "In 14.10 and earlier, app deverlopers could use ubuntu-html5-app-launcher with the ubuntu-sdk template. In 15.04 ubuntu-html5-app-launcher has merged with webapp-container and ubuntu-html5-app-launcher is deprecated and users should use the ubuntu-webapp template and specify webapp-container instead of html5-app-container in their .desktop file."21:53

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