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

=== chriadam|away is now known as chriadam
davidcalleMorning o/07:28
=== chriadam is now known as chriadam|away
=== DanChapman_ is now known as DanChapman
=== JamesTait is now known as JamesTait_
=== JamesTait_ is now known as JamesTait
=== diddledan_ is now known as diddledan
dholbachdavidcalle, mhall119: how's the deployment?12:16
davidcalledholbach, imminent, but delayed to monday to avoid doing it on a friday afternoon12:19
dholbachok12:26
karnidpm: from https://developer.ubuntu.com/api/devel/ubuntu-13.04/qml/ui-toolkit/qml-ubuntu-components0-i18n.html it seems I can't easily disambiguate strings that may possibly have different translation in different context, if I'm using the same word in QML, would you agree? http://paste.ubuntu.com/12448243/12:35
dpmkarni, you're using documentation for a very old framework12:37
karnidpm: Have you ever seen an instance, where some message ids (strnig based) would be passed to i18n.tr calls instead of English text, and English text translation was provided for those. Say, i18n.tr("login_button_label") and English translation: "Log in"?12:37
karnidpm: lol.. just noticed. that's what google returned, my bad.12:38
dpmkarni, that's what you need: https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.i18n12:38
karniyes, I'm there now, thank you12:39
dpmkarni, i18n.ctr()12:39
karnidpm: great. can you address my second question regardless? I wonder if anyone's done that before.12:39
karnidpm: which is also how Android apps are translated (sort of, the text id's are actually consts with numerical value pointing to the string translation)12:40
dpmkarni, ah, sorry, I hadn't noticed it was another question. No, I've not seen that before. What I've seen is non-human messages e.g. "login_button_label" being used and then the translations being returned. That's... a less than stellar way of doing translations12:50
dpmas it's a pain for translators to figure out what the original English string is12:50
karnidpm: right, because they're working with what is within the tr call, not the English translation12:51
karnidpm: naturally :) thanks.12:52
karnidpm: it seems strings wrapped with ctr don't appear in the pot file, could you care to try reproduce that? such as: i18n.ctr("AccountSettings", "Info")12:57
dpmkarni, you'll probably need to add --keyword ctr to the xgettext call (or some similar syntax, I'm talking off the top of my head)12:59
karnidpm: ok, that's part of the SDK qmake project setup, so I'll file a bug12:59
dpmok, cool12:59
mardyDanChapman: hi! Are you (or someone else) working on adding support to Dekko for Yahoo Mail, via oauth?13:02
DanChapmanmardy, hey! I did plan to look at yahoo at some point, as well as for outlook.com as they both support oauth2 (i think possibly icloud as well?).13:08
DanChapmanmardy dekko currently only works using oauth if the server has the SASL-IR capability. Sending the initial client response in the challenge/response exchange still needs to be implemented13:13
mardyDanChapman: I'm not very familiar with the terms you are mentioning :-) Is that the same thing as XOAUTH2?13:23
DanChapmanmardy :-) yes so XOAUTH2 is the auth mechanism that is used, SASL-IR provides a way to send the initial client repsonse with the AUTHENTICATE command see https://tools.ietf.org/html/rfc4959  but not all IMAP servers support it so instead you would have to wait for the continuation request before sending the client response containing your token etc13:30
mardyDanChapman: ok. I guess I'll just have to try, yahoo mail is completely undocumented13:37
DanChapmanmardy, seems yahoo doesn't support SASL-IR http://paste.ubuntu.com/12448737/. If someone can make the UOA provider for it though I could definately find time soon to get it working ;-)13:37
karnizbenjamin: what project should I file a bug if the qmake project setup only has xgettext extract tr() calls, but not ctr() for instance? this should be re-aligned with https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.i18n/13:38
karnizbenjamin: basically, if you want to provide a context to translation (with i18n.ctr), it won't even show up in the .pot file13:38
mardyDanChapman: no problem, that I can do it :-)13:39
zbenjaminkarni: hm qtcreator-plugin-ubuntu13:39
karnizbenjamin: thanks13:39
DanChapmanmardy, awesome, that would be great. Thanks! I created https://bugs.launchpad.net/dekko/+bug/1497292 to track it13:51
ubot5Ubuntu bug 1497292 in Dekko "Yahoo online accounts integration." [High,Triaged]13:51
zbenjaminkarni: do those work in cmake projects?13:56
karnizbenjamin: I don't know, working with a qmake project. Since it's in the docs, I gather it should work in both, but I did not have time to repro with a cmake one. I think it should be easy to nail where you do the xgettext calls, no?13:57
zbenjaminkarni: yeah I was just wondering , because then i'd need to fix the cmake too13:59
zbenjaminkarni: can read that up in the cmake files i guess13:59
karnizbenjamin: don't know Benjamin, it's the frist time I needed .ctr() and just noticed this13:59
karnizbenjamin: never used it with cmake though13:59
karnizbenjamin: I was hoping it'd be as easy for you as grep -r xgettext and ensure the project setup's are correct :)14:00
zbenjaminkarni: should be14:00
karni:)14:00
balloonspopey, how's the test writing going?14:01
popeynot done yet14:01
mardyDanChapman: thanks! I added the provider file to the bug, it was easy :-)14:41
rschrollSome questions on drag-and-drop with the new ListItem15:43
rschrollFirst, is there any way to learn when a drag has ended using a live drag setup?  You never get a ListItemDrag.Dropped signal, since all of the ListItemDrag.Moving signals were accepted.15:44
sverzegnassi_popey: that's really strange. just tested on BQ E5, OTA-6: downloaded a file with browser and imported in docviewer. The document has been imported, loaded and shown on display15:46
popeyodd15:46
* popey reboots15:46
popeysverzegnassi_: rebooted phone and now it works!15:52
popeySo lets forget about that for now :)15:52
sverzegnassi_popey: great! tomorrow I'll do the MPs for the three branches then15:56
popey\o/ thanks!15:56
popeysverzegnassi_: what's the easiest way to send lots of PDFs to docviewer?15:56
popeyyou said it gives a popup for multiple documents15:57
DanChapmanmardy: awesome, thanks! i'll have a play with that over the weekend :-)15:59
ts__Hello , guidance needed for click packages , to run in unconfined mode ( to get dbus and db access).16:02
beunots__, this is just for development purposes?  you won't ever be able to submit an uncofined app to the store16:03
ts__had to give it a go here just in case someone might just know that. and as fas as I know there is no other way to access dbus( registering interface) other than unconfined mode.16:05
ts__far*16:05
beunots__, jdstrand might be able to give you hints on how to use dbus16:07
ts__thanks beuno :)16:08
jdstrandts__: it sounds like you want to ship a dbus service?16:15
ts__yes16:16
jdstrandthat isn't permitted by the system16:17
jdstrandthat would require a background service and registering the service in some way16:17
ts__unconfined mode can be used?16:17
jdstrandno16:17
jdstrandI mean, you could start it manully16:17
jdstrandmanually16:17
jdstrandbut, no autostart16:17
ts__autostart is not needed , want it through application16:18
jdstrandit is beyond the security policy. if you are using unconfined, it would allow you to do whatever with dbus16:19
jdstrandbut bus policy won't let you start on system bus16:19
jdstrandyou could start something on the session bus16:20
jdstrandit is likely not going to function properly with application lifecycle16:20
ts__need it on session bus , is it possible without unconfined mode? unconfined mode doesnt seems feasible either though.16:20
jdstrandbasically, you are trying to do something that is in direct contrast to what is permitted in the design-- you might be able to get something to sorta work, but it's unsupported16:21
ts__i see , so only option is unconfined mode16:21
jdstrandsecurity policy will block you from binding a service16:21
jdstrandunconfined would let you do that, but then the system will likely cause you trouble16:21
ts__i tried to set mode to unconfined in manifest file as "template":"unconfined" , this fiels isnt supported anymore16:22
ts__field*16:23
ts__so , how to run it as unconfined..?16:25
popeyit should be supported16:25
popeywe use it for terminal and file manager16:25
popeyoh, it says "not allowed"16:26
popey[M#V[        (MANUAL REVIEW) 'unconfined' not allowed16:26
popeywhich is different from not supported :)16:26
ts__ Lol , i meant not supported by click packaging :)16:26
ts__not allowed alright :)16:27
popeyright.16:27
popeyyou could give your customers an unconfined click, or put it in the "open store", but unconfined apps won't go in the default store which is available on our customer devices16:27
ts__problem is i cant generate the click package with mode set to unconfined ( hope im not missing something there)16:28
popeyodd, I am able to16:29
popeybut it runs click-review afterwards, which gives the error message16:29
popey(I dont use qtcreator, I'm using click tools on the command line)16:29
popeybut it does create a click.16:29
popeymaybe manually edit the apparmor file outside of qtcreator (I don't know if we're being 'helpful' here in qtc?) and then open in qtc and build it?16:30
ts__i used terminal command as well , got the same error , something like " template field not supported"16:30
popeycan you pastebin the full output so I can see pls?16:31
ts__sure ,gimme a min16:31
ts__ERROR: manifest malformed: unsupported field 'template'16:32
popeynot seen that, guess it's a qtc specific error16:35
popeysorry16:35
ts__oh , its ok , i m stuck bad for this issue , thanks very much :)16:37
rschrollts__: Just converted a project of mine to unconfined in Qt Creator, and it worked ok.16:38
rschrollCan you paste the contents of your apparmor file somewhere for us to see16:38
ts__apparmor does support unconfined mode16:38
ts__it is only this error I get when creating click package16:39
ts__going by documents , i should be apple to use "template":"unconfined" in manifest file, but error message i get states 'template field not supported' , although it does creates the click package16:41
ts__*able16:41
rschrollNo, set template: unconfined in the apparmor file.16:41
ts__oh ok16:42
rschroll(The one referenced in the appamor hook in the manifest)16:42
ts__i see16:42
ts__compiling now ..16:46
ts__this is the error i get: :-1: error: security_template_valid (myapp.apparmor): (MANUAL REVIEW) 'unconfined' not allowed16:51
jdstrandthat is write, but you should have a click16:52
jdstrandright*16:52
ts__yea , and this package will be able to work as unconfined..?16:52
rschrollIt should.  Give it a try and let us know16:53
ts__ohk16:54
=== dpm is now known as dpm-afk
ts__rschroll, it worked!17:28
rschrollYay!17:40
ts__Thanks rschroll!!!17:40
rschrollnp.  Glad we could figure it out17:42
ts__:)17:43
nemomcphail: oh. you're back. um... could I have the contents of that ppas.sh linking script plz?17:46
ts__that was brilliant of you , working on it to see if everything else is working as expected17:48
ts__thanks to popey and jdstrand too.17:53
BlackJohnnyhi18:18
BlackJohnnyi want to write a cmake section to "detect" ubuntu-touch as target for a cross-platform build18:21
BlackJohnnyany hints on what is the right way to do it?18:21
BlackJohnnywant to support desktop and mobile18:21
BlackJohnnyi could just configure the desktop kit with a variable DESKTOP=1 ... but I wonder if there is no other more elegant way directly in CMakeLists.txt18:22
BlackJohnnythanks18:23
rschrollBlackJohnny: You could condition on the build architecture, I suppose19:02
BlackJohnnyisn't that the same as for Android?19:03
rschrollAssume armhf is touch and x86 is desktop.  But that assumes x86 tablets and armhf computers don't exist.19:04
rschrollProbably not a good idea19:04
BlackJohnnythanks19:04
rschrollI'm not sure how19:05
rschrollAndroid enters your thinking19:05
BlackJohnnyfor the moment I will use a cmake argument19:05
rschrollprobably the safest path19:05
BlackJohnnyi am working on adding support to cocos2d ... if that is even possible :)19:05
BlackJohnnytesting ...19:05
popey"But that assumes x86 tablets and armhf computers don't exist."19:08
popeyi own one of each of those :)19:08
rschrollI can reliably crash Mir.  Should I be proud?19:22
popeyrschroll: welcome to the club19:52
popeyyou're one of us now19:52
rschrollpopey: This is on a stable image.  Is it worth submitting a bug, or is mir moving fast enough that this is outdated?20:10
popeyif it was a crash then apport should have caught it, and you should have something in /var/crash around the date/time involved?20:11
popeyif so, then it gets uploaded and in general you shouldn't have to worry about it20:11
rschrollLet me check...20:11
rschrollDoesn't look like it...20:13
popey:(20:15
popeynot sure there's much they can go on20:16
rschrollI can post the app that causes the crash20:16
rschroll(Also, don't know if it's Mir or Unity 8 or what that's dieing)20:17
popeyrschroll: I'll happily test it on a bleeding edge device if that helps?20:32
popeyrschroll: nothing in "sudo dmesg"? specifically nothing in "sudo dmesg | grep DEN"?20:33
rschrollNothing obvious.20:35
rschrollHere's the guilty code: http://paste.ubuntu.com/12455686/20:36
rschrollI was wondering if a single app could have two winds20:36
rschrollwindows20:36
rschrollI expect not, but wasn't expecting a crash20:36
rschrollI can zip up the full project if that would help20:36
popeyahh20:38
popeyyes, i think thats known broken20:38
rschrollcool20:38
rschrollI didn't a quick glance through the bug list and didn't see anything20:38
rschrollpopey: While I have you, who should I bug with questions about drag-and-drop with the new ListItem?20:40
popeyt1mp or zsombi I think.20:41
rschrollThanks.20:43
rschrollt1mp, zsombi: If you feel like fielding questions on drag and drop, please let me know.20:44
karnizbenjamin: qmake project also won't pick up "old style" _( ) for translations within C++, whereas tr() can't be used, because that's the built-in QObject method.22:36
karnizbenjamin: I mean, I thought I'd trick the qmake project to pick up strings for translations with #define tr(value) gettext(value), but that conflicted in a class that actually inherits from QObject22:37
karnizbenjamin: so the trick only worked for non QObjects :'(22:37
karnizbenjamin: would you have any advice for picking up translations from C++? (I only saw something about UbuntuI18n::tr, have not used that yet. most probably undocumented as well.)22:38

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