=== duflu_ is now known as duflu === JoseeAntonioR is now known as jose === ecloud is now known as ecloud_wfh === chihchun is now known as chihchun_afk [11:31] Merry Christmas [11:31] to all [11:32] WIll someone tell me can i add ubuntu touch to my old model nexus 7 tablet [11:42] !devices | ogi [11:42] ogi: You can find the full list of devices, official images, community images, and works in progress at https://wiki.ubuntu.com/Touch/Devices [11:47] its the old model .. i think 720p [11:48] its with 3g modem .. https://wiki.ubuntu.com/Touch/Devices says wifi only :| [11:54] you got the 2012 nexus7? [11:59] y [11:59] then you cant run ubuntu-touch sorry [11:59] only 2013 wifi model [12:25] hey w00t [12:25] lol [12:26] excuse me, i have never done any porting before, I would like to ask whether or not it is possible to port ubuntu touch to an android device without kernel being released officially? [12:46] !devices [12:46] You can find the full list of devices, official images, community images, and works in progress at https://wiki.ubuntu.com/Touch/Devices [12:52] daker, can I override the user agent in a webapp? or do I need to create a tiny qml wrapper? [12:55] aha, this is an alex-abreu question, actually [12:55] alex-abreu, how do I override the user agent in a webapp? https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1245465 seems relevant here but even after looking at the merge proposal I can't see how to do it :( [12:56] Launchpad bug 1245465 in webbrowser-app (Ubuntu) "should offer a commandline option to override the user agent in webapp mode" [High,Fix released] [13:05] aquarius: i used a wrapper... [13:05] for my shonky apps [13:05] popey, yeah, daker's post describes how to do that. But that's a hack -- it looks like there was that bug filed to allow overriding in a pure webapp and the bug's been closed as fixed, but I can't see how to actually *do* it :) [13:06] and the documentation is, er, short :) [13:08] i dont see it from that patch [13:08] https://code.launchpad.net/~abreu-alexandre/webbrowser-app/enable-per-app-ua-override/+merge/216749 === LjL is now known as LjL-Away [13:17] hi [13:21] popey, nor me, hence asking alex-abreu :) [13:21] (I ask many questions because I haven't bought a devices supported by Ubuntu Touch) but, the best device is the nexus 4, how long will be supported by canonical? Should I wait or buy this? (sorry for my english) [13:22] ok, now spun up a tiny qml file, and stupid Amazon CLoud Reader is pretending to not work still. Next step: work out how to turn on the devtools inspector in an oxide qml app [13:22] this is a chrisccoulson question but he's not around. [13:23] * aquarius pings coulson on twitter :) [13:24] julienrbt: I'd wait and get the BQ device which launches in just over a month [13:25] ok, february, it is a good device? it will be supported by Canonical or Bq? [13:28] define "supported"? [13:28] update by canonical [13:28] (like nexus by google) [13:28] both really. [13:29] part of it is updated by us, part by bq AIUI [13:29] :( [13:29] why ☹ ? [13:30] so when bq don't want to update we don't have update? [13:30] (so sorry for my english) [13:31] thats not how it works [13:31] and the Bq is less powerful than the nexus [13:31] canonical do the updates to the base, bq only have a layer on top [13:31] there's not a lot in the performance between the two in my experience [13:32] I benchmarked them both with a couple of HTML5 games and got the same FPS on both [13:32] also, the BQ has an sd card slot which is handy [13:32] ok [13:32] and 1gb is ok? [13:32] yeah, would prefer more of course ☻ [13:33] it will be released in France? [13:35] ahahaa! WebContext.devtoolsEnabled ftw. [13:35] julienrbt: it will be available to buy online from BQ in spain [13:36] ok [13:38] aquarius: i think you can now, http://paste.ubuntu.com/8642612/ (i didn't test it) [13:38] you know how long the nexus 4 will be supported by canonical compared to the Bq? [13:39] julienrbt: i dont [13:39] daker: nice find! [13:39] because with android, if we don't take a Nexus, updates come later.. [13:41] daker, I have just written a little blog post explaining how, and linking to yours :) [13:42] aquarius: wow more backlinks :D [13:43] http://www.kryogenix.org/days/2014/12/30/enabling-the-devtools-inspector-when-using-oxide-in-an-ubuntu-sdk-qml-app/ [13:44] aquarius: true it wasn't possible that time [13:44] it is now, hooray! [13:44] and a tiny little bit more documentation now exists [13:45] oxide is viciously underdocumented :P [13:54] well yes [14:00] can ubuntu be made to run on galaxy s7580 w\o CM [14:12] http://pastebin.ubuntu.com/9645583/ [14:12] woo, progress; amazon cloud reader needs localStorage enabled, which I now have done. [14:13] daker, I get about a zillion warnings like this; do you know what it means? [1230/141241:WARNING:quota_manager.cc(196)] Create directory failed for path [14:16] maybe it's related to localStorage that you have enabled ? [14:17] or you don't have enough space in you device ? [14:18] not likely to be space -- I'm running this on my desktop, which has lots of space :) [14:18] would be useful if it told me *which* path it was failing on :( [14:19] this does rather suggest that the localStorage stuff just flat doesn't work, though. [14:19] https://gitorious.org/blink/chromium/source/b95b1e69e27511760af4bba6a7326734980392fe:webkit/browser/quota/quota_manager.cc#L192 [14:19] aah, maybe I need to set cachePath on the webcontext? [14:20] huh, I need a profile path. [14:21] https://bugs.launchpad.net/webbrowser-app/+bug/1405844 [14:21] Launchpad bug 1405844 in webbrowser-app "Incorrect cachePath and dataPath set when using WebView with qmlscene" [Undecided,New] [14:21] ha! [14:22] yeah! [14:22] set datapath, that helps :) [14:23] yes i was going to say that https://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webcontainer/WebApp.qml#L43 [14:24] * aquarius affects-me's the bug [14:27] how do you build ubuntu for galaxy 7580 [14:32] almost perfect... just that Cloud Reader doesn't work in narrow screens :( [14:33] o/ all [14:33] * rickspencer3 sips coffee [14:33] hm, I think that might be a showstopping limitation. How annoying. [14:34] aquarius, so, after your comments on my g+ post, I went back and added tests for qmltestrunner for my u1db [14:34] ooh, you hero [14:34] well played. [14:34] and realized how aweful terrible and smelly my api was [14:34] aquarius: you working on kindle cloud reader? [14:34] I can't work out for the life of me how to test push notifications. [14:34] popey, yep! [14:34] I know Elleo has had that working on devices in the past [14:35] with some significant hacks [14:35] popey, really? Elleo, ping :) [14:35] I have cloud reader working fine, it's just that cloud reader itself assumes your screen is wider than a phone [14:35] I really wish I wrote the tests first :/ [14:35] * rickspencer3 updates app for the store than refactors [14:35] this is probably why you get the "use the app" thing and they don't support cloud reader on phones... [14:36] rickspencer3, yeah. This is, indeed, why to write the tests first. I get burned by this every time that I don't do that... [14:38] Elleo, is there source available for erudite? [14:40] Elleo, or, failing that (because it's a paid app, so no problem) how did you deal with screen width? in particular that cloud reader assumes you have a screen wider than a phone [14:40] wow, click package build at 9:38am, update approved at 9:39am [14:41] \o/ Robots! [14:42] number of clicks is climbing... http://popey.mooo.com/mirror/clicks/graph.png [14:43] bah [14:43] * popey stabs btrfs [14:44] Elleo, aha, gitorious.org/erudite, winn0r [14:44] daker, what's the best way to add custom override styles to a page opened in a QML Oxide widget? Add a user script? [14:58] aquarius, yes you can w/ --user-agent-string= as a command line arg [14:58] (for the custom ua) [14:58] alex-abreu, ah, cool. that seems undocumented? [14:58] (even in the help...) [14:59] aquarius, you are running V? [15:00] alex-abreu, hell no. 14.04 :) [15:00] aquarius, it has not bee backported to 14.04, yet [15:01] alex-abreu, ah, OK, that explains it then... [15:11] have a samsumg 7580 lying around; looks like a souped up rbpi can buntu be installed on this thimg [15:29] yeahhhhhh! cloud reader success! [15:49] huh, daker, that bug Elleo filed about dataPath is more serious than it looks, because the correct path doesn't even get *created* and so you can't save anything in it === Cygnus-XI_ is now known as Cygnus-XI [15:59] aquarius: I have a vaguely working version of erudite for UT I can send you later if you like [15:59] Elleo, heya! [15:59] Elleo, I've got things working here, except that the stupid datapath bug breaks things [16:00] aquarius: not all of the CSS hacks from webkit work in the same way on oxide, so there's still some stuff that needs fixing after applying the scaling stuff to it (mostly dialogs go in the wrong place) [16:00] Elleo, I've done the scaling slightly differently from you [16:00] Elleo, but the principle is still sound, I think. [16:00] aquarius: ah cool, for my app that was having those issues I just ended up manually setting the dataPath and cachePath from in the webcontext by addign a function as a C++ extension that reads the QStandardPaths stuff [16:01] bump [16:01] Elleo, irritatingly, as far as I can tell, the correct path (/home/phablet/.cache/org.kryogenix.Seshat) doesn't even get created, so even if I explicitly point to it, things stull don't work :( [16:02] aquarius: http://bazaar.launchpad.net/~michael-sheldon/cachemere/trunk/view/head:/app/ui/BrowserTab.qml#L83 and http://bazaar.launchpad.net/~michael-sheldon/cachemere/trunk/view/head:/backend/modules/Cachemere/cachemodel.cpp#L129 [16:02] aquarius: ah yeah, I create those paths if they don't exist elsewhere in my code [16:02] I can't do that from qml :( [16:03] call me Mr Irritable [16:03] I wonder if it works if I do a pure web app? [16:03] all I need is my custom script to fix up the styles, and a user agent override, and I believe they're both doable with a pure web app [16:03] aquarius: I'm also wondering if it works if the app id is set from C++ prior to enabling the QmlEngine, you'd still need a tiny C++ wrapper for that though [16:04] no C++ for me. :) [16:04] aquarius: oh yeah, and friendly warning; Amazon's lawyers may pester you a bit ;) [16:05] aquarius: but don't worry, they've been all bluster and no bite so far ;) [16:05] Elleo, that's why it's called Seshat. :P [16:06] aquarius: yeah, on my first release their IP lawyers complained about the name (Firestarter) which is why it got changed to Erudite, and then shut up when I explained it was basically just a special web browser [16:06] aquarius: but on the Symbian release the head of Kindle dev stuff moaned at me too, regardless of the name [16:06] orly? [16:06] aquarius: and then eventually also stopped talking to me [16:06] hrm. [16:07] that's a bit annoying. [16:07] yeah, I think part of their complaint was that I was charging for it though [16:08] I asked them if they'd stop hassling me if I made it free [16:08] and they just stopped responding, so I left it as it was and stopped caring [16:13] Elleo, ah, right, I'm not gonna do that for this, it's too simple [16:13] although I can't actually build a webapp, unusefully [16:14] :-1: error: security_policy_groups_webapp (Seshat.apparmor): found unusual policy groups: debug [16:14] but I do not have debug in Seshat.apparmor! [16:14] grrrrrrr [16:14] aquarius: that's normal [16:14] aquarius: QtCreator adds that automatically when you deploy via QtCreator [16:14] it's an exclamation-mark build error :( [16:14] aquarius: if you go to the "Publish" page and then "Create click package" it'll make one without debug enabled [16:15] and my user agent override isn't being used :( [16:15] alex-abreu, is http://bazaar.launchpad.net/~webapps/unity-webapps-qml/trunk/view/head:/tests/autopilot/data/all-in-same-folder/webapp-properties.json still correct? [16:15] aquarius: are you able to do CSS overrides with webapp-container? I didn't think that was possible? [16:16] Elleo, according to daker and alex-abreu, yep -- I can add a user script [16:16] ah, okay; cool [16:16] Elleo, see http://paste.ubuntu.com/8642612/ [16:16] it is undocumented afaict :P [16:16] aquarius: I have a feeling unity-webapps are different to webapps-container stuff [16:16] aquarius: but I could easily be wrong [16:17] it works, though; it's injecting my user script (yay!) [16:17] ah, cool [16:17] but it is *not* overriding the user agent [16:17] so cloud reader barfs [16:17] aquarius: I thought there was a commandline switch for the useragent with webapps-container? [16:18] so did I think that [16:18] there is, afaict, not. [16:18] oh [16:18] hence using the webapp-properties.json [16:18] I might be wrong [16:18] it is hard to know because there is no bleedin' documentation for this stuff :) [16:21] aquarius, Elleo I cannot answer right (kids), but I'll get back to you a bit later (also on the datacache "bug") [16:21] aquarius, for devtools you can override & use the oxide context devtoolsEnabled (and optionally devtoolsPort & devtoolsIp) [16:22] aquarius: based on the code I think you should be able to use "--user-agent-string=" [16:22] alex-abreu, yep, I worked that one out abou the devtools (and wrote a little blog post about it :)) [16:22] http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webcontainer/webapp-container.cpp#L320 [16:22] aquarius, in the webbrtowser-app there is a flag, and the ubuntu webview plugin uses an env var to gather the values (easier for AP) http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/Ubuntu/Web/UbuntuWebContext.qml#L86 [16:23] Elleo, aquarius yes you can (--user-agent...), but the trick is that when you use the webapp-properties you then have to switch exclusively to it (even for ua override defs) [16:23] which is something inconvenient I plan to fix [16:23] alex-abreu: ah, didn't realise that [16:24] alex-abreu, I don't think that my user agent is being set by webapp-properties.json [16:24] alex-abreu, should the key be "user-agent-override" ? I think that isn't working... [16:25] aquarius: I have to head out for the evening now, good luck :) it'll be very cool to have the reader stuff working nicely on UT [16:25] Elleo, more news as it happens, and cheers for the pointers :) [16:25] I'll be following with interest :) [16:28] blimeym, I can't even find where th webapp model search path stuff even gets read [16:40] alex-abreu, when you're back (no problem if you're dealing with kids, they're more important) I'd like to try and work out why my user-agent-override in webapp-properties.json is being ignored :( [18:15] alex-abreu, ah. https://bugs.launchpad.net/webbrowser-app/+bug/1379497 is the problem. The user agent override just plain doesn't work :( [18:15] Launchpad bug 1379497 in webbrowser-app (Ubuntu RTM) "[webapp-container] UA Override from an optional webapp-properies.json file is not set" [Undecided,Confirmed] [18:36] alex-abreu, ah. Also, a web app script is not loaded into every page that loads (including iframes); it's only loaded and inserted *once*, on the first page. Is that the way it's meant to work? [20:16] alex-abreu, sadly, that makes web apps which need an injected script and a ua override unpublishable, I think, because the click reviewers tools say "should not specify --webappUrlPatterns when using --webappModelSearchPath". [20:16] it feels a bit like nobody's testing this stuff end-to-end. :( [20:17] I know that's an unfair criticism, of course. [20:21] perhaps that's why it's not documented? [20:21] https://bugs.launchpad.net/webbrowser-app/+bug/1406643 filed anyway. [20:21] Launchpad bug 1406643 in webbrowser-app "Webapps requiring a content script and a UA override are unpublishable in the click store" [Undecided,New] [20:22] popey, if that's the case, if webapps with UA overrides are just not supported yet, then OK; I'd just like someone to say "don't bother writing these for a few months". :( [20:24] my amazon cloud reader app works now fine, but the click reviewers tools reject it in favour of insisting I take an approach which doesn't actually work :( [20:30] ☹ [20:30] does it reject in the store? [20:31] I don't know. I am loath to upload something to the dtore which is explicitly disallowed by the review tools, even if the review tools are wrong. [20:31] I can try it, I suppose, but I'm worried it might break things. [20:31] well the same tools run on the store to be fair so it should reject [20:31] and in theory it *ought* to bin it. [20:31] the click works though? [20:32] you dont have to publish it [20:33] hrm. The publish pane in Ubuntu SDK complains because the review tools fail. I didn't try actually building the click by hand and installing it [20:33] I shall try that. [20:35] ok, the click works, afaict [20:35] want to try it? [20:35] sure [20:36] http://kryogenix.org/random/org.kryogenix.seshat_0.1_all.click [20:36] it is possible that it doesn't work if you have to log in first, and I can't find a way of clearing a webapp's stored data :( [20:38] aquarius: https://imgur.com/BpXCqfD [20:38] what? [20:38] dammit. [20:39] it works for me in the emulator :( [20:39] that means that the user agent override isn't being applied. [20:40] and I try to apply it *twice*, once in the desktop file (which should work) and once in the json overrides file (which ought to work and doesn't because of bug #1379497) [20:40] bug 1379497 in webbrowser-app (Ubuntu RTM) "[webapp-container] UA Override from an optional webapp-properies.json file is not set" [Undecided,Confirmed] https://launchpad.net/bugs/1379497 [20:40] popey, can you see the console output from it, somehow? [20:41] sure [20:41] can you pastebin that? [20:41] aquarius: http://paste.ubuntu.com/9647457/ [20:42] ok, so overriding in the json file doesn't work because of the bug, and overriding in the desktop file is being ignored. [20:42] so, it is just flat not possible to build a webapp with an overridden user agent right now. [20:43] bummer [20:43] and it's not possible to embed oxide in a pure qml app and do it that way either because of bug #1405844 [20:43] bug 1405844 in webbrowser-app "Incorrect cachePath and dataPath set when using WebView with qmlscene" [Undecided,New] https://launchpad.net/bugs/1405844 [20:44] so, nothin' works. Oh well. There's a day I'm not gonna get back, then. :( [20:44] ☹ [23:40] aquarius: why ? you can set the useragent manually [23:40] daker, how? not in a web app, as far as I'm aware [23:42] aquarius: http://daker.me/2014/05/how-to-use-oxide-in-your-ubuntu-qml-application.html [23:42] UserAgent section [23:42] daker, https://bugs.launchpad.net/webbrowser-app/+bug/1405844 means that I can't use Oxide in a QML app. [23:42] Launchpad bug 1405844 in webbrowser-app "Incorrect cachePath and dataPath set when using WebView with qmlscene" [Undecided,New] [23:42] hence me trying to use a web app [23:43] (also, this is clearly a webapp job; I don't need a qml wrapper here) [23:43] ah yes :/ [23:51] daker, hence I am blocked from progress. Hence sad face. :( [23:52] i see [23:53] This is also why I can't use the Amazon Cloud Reader on Ubuntu. [23:53] nhaines, that's precisely what I've been trying to fix. [23:54] and I can make the cloud reader work perfectly [23:54] right here [23:54] it works [23:54] hooray [23:54] I just can't build the app which uses it because the user agent override, which works in my development version, is broken on the actual system. [23:54] otherwise, it works :( [23:55] aquarius: \o/ [23:55] http://screencloud.net/v/5GJF and http://screencloud.net/v/5GJF [23:55] you are welcome to the code if you want it :) [23:58] but (a) user agent overrides don't work in a webapp-properties.json file (bug #1379497), (b) you can specify a user agent override on the .desktop file Exec line but (i) that gets rejected by the click review tools (bug #1406643) and (ii) works on my 14.04 machine and in my emulator but doesn't work on popey's more up-to-date device, and (c) I can't just make my own QML wrapper because Oxide can't save any data b [23:58] ecause it gets the data path wrong (bug #1405844). [23:59] all paths to success are blocked. [23:59] Error: Could not gather data from Launchpad for bug #1379497 (https://launchpad.net/bugs/1379497). The error has been logged [23:59] bug 1406643 in webbrowser-app "Webapps requiring a content script and a UA override are unpublishable in the click store" [Undecided,New] https://launchpad.net/bugs/1406643 [23:59] bug 1405844 in webbrowser-app "Incorrect cachePath and dataPath set when using WebView with qmlscene" [Undecided,New] https://launchpad.net/bugs/1405844 [23:59] Elleo got around problem (c) by writing a small C++ thing to get the paths correctly, but I'm not doing that.