/srv/irclogs.ubuntu.com/2015/12/02/#ubuntu-app-devel.txt

=== 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
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning07:47
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== sturmflut2 is now known as sturmflut
=== 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
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
mzanettiballoons, here?15:01
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
lapisdecorhi. I have a problem when trying to run a qml c++ project in the sdk, it says :-1: error: cannot find -lGL15:47
lapisdecorit's an 'empty' app, just starting15:48
lapisdecorits a qmake project with qml and c++15:48
lapisdecorI also had an autopilot problem, but i removed the autopilot plugin15:50
lapisdecorand test directories15:51
lapisdecorcan anyone help me?15:54
lapisdecorit would be really nice if we had videos on youtube explaining this things...15:58
lapisdecorappdevs15:58
lapisdecor"appdevs"15:58
lapisdecorI'm trying to follow this example, using the sdk: http://doc.qt.io/qt-5/gettingstartedqml.html16:09
lapisdecoras I didn't knew which project to choose, I chose qml with c++ library16:10
=== DanChapm- is now known as DanChapman
snizzopopey: Regarding the xdg data folder not being automatically created, I solved the problem by creating the folder inside the qt code (it works). I think it could be worth mentioning somewhere (maybe askubuntu?)19:40
snizzoI lost a week on that (due to not having a 4.5 and testing was therefore waay slow) since the problem happens only with 4.519:41
bartbessince people seem to be around, no terminal devs happen to be around as well?19:42
popeybartbes, wassup?19:50
bartbesI desperately need a control key :P19:51
popeya specific key or ctrl in general?19:51
bartbesso I've got a shitty patch, but I was wondering if someone else had done it already19:51
popeyno, nobody has19:51
bartbeshow can you get by without a control key?19:52
bartbesespecially without a tmux bar19:52
popeyi use custom toolbars which have the ctrl key combos i need19:52
popeycreate a tmux bar and I'll merge it :)19:52
bartbesanyway, my patch just adds 'Control', which when pressed modifies your next keypress19:52
popeythat would be great, does it work? :)19:53
bartbesyes, it does work19:53
popeycan you throw the patch my way to have a look and test?19:53
popeyalso a tmux bar would be great too :)19:53
bartbessure, I'll clean it up first though, I wrote it in a vm with a shitty resolution using vim.tiny without knowing how qml works, so it's quite messy atm19:53
popeyhehe19:55
popeyI look forward to seeing it, thanks.19:55
bartbestheoretically it can do any other modifier, but ctrl's the only missing one19:57
bartbespopey: what's the best way to send you the patch? and is a 'bzr diff' good enough?20:27
popeybartbes, any how you like20:29
popeybartbes, got the mail, will have a play tomorrow, thank you!20:35
bartbesgood, gmail was being forgetful whenever I typed 'pope'20:36
bartbesit even suggested sending a message on google+, and then when I clicked it it said it couldn't do it20:36
=== salem_ is now known as _salem
rickspencer3kenvandine, hey man, I'm working on my flash card app again20:54
kenvandinehey rickspencer320:54
rickspencer3I'm adding the ability to import a sound to go with a card20:54
kenvandinecool, music-app is registered as a source now :)20:54
rickspencer3I've got some import code from another part of hte project, but that code doesn't actually save the file20:54
rickspencer3I assume there are just a couple of lines I need to actually save the file, but I can't find those lines :P20:55
rickspencer3little help?20:55
kenvandinesure20:55
kenvandineon esec20:56
kenvandineone sec20:56
kenvandinehttp://bazaar.launchpad.net/~system-settings-touch/ubuntu-system-settings/trunk/view/head:/plugins/sound/SoundsList.qml#L21320:57
kenvandinerickspencer3, including a ContentStore in the transfer request is probably the easiest way20:57
rickspencer3right, I saw that code, but it wasn't easy to parse out what I needed ;)20:57
kenvandinethat'll save it to ~/.local/share/APP_ID/Type20:57
kenvandinefor music:20:58
kenvandine ~/.local/share/APP_ID/Music20:58
rickspencer3kenvandine, hmm, it's not really music, though20:58
kenvandineyeah20:58
kenvandinewe don't have a type for other sounds right now20:58
rickspencer3kenvandine, first, can you tell me which line to look at in the file you pasted me?20:58
kenvandinewhat app is providing the sound?20:58
kenvandineline 21320:58
rickspencer3kenvandine, I think any app can, right? but most likely file manager21:01
kenvandinefile manager can provide any type21:01
kenvandineso yeah21:01
rickspencer3kenvandine, let me push and I will paste you a link21:01
kenvandinecool21:01
rickspencer3kenvandine, http://bazaar.launchpad.net/~rick-rickspencer3/+junk/flash2/view/head:/components/AddSoundDialog.qml21:02
rickspencer3hmm21:03
rickspencer3kenvandine, hold on, that's not right ;)21:03
rickspencer3kenvandine, now look :)21:03
kenvandine activeTransfer = peer.request();21:04
kenvandineadd a ContentStore then make that21:04
kenvandinepeer.request(appStore)21:04
kenvandineor whatever you name it21:04
kenvandinethat'll send the file to that persistent directory instead of HubIncoming21:04
snizzokenvandine: random question: do apps have rw permissions on sdcard?21:05
rickspencer3hmmm21:05
kenvandinesnizzo, nope21:05
kenvandinewell... music-app does21:05
snizzoyeah...21:05
snizzowhy this limitation, if I can ask... security?21:06
kenvandineyup21:06
snizzowhy android permits this? Is it insecure?21:06
kenvandinesnizzo, there are plans to allow access via content-hub21:06
kenvandinerickspencer3, look at my example, see where i defined appStore?21:06
kenvandineline 19521:06
snizzoprogrammatic access like in android or access via some exchange ui like content-hub?21:07
kenvandineUI via content-hub21:07
kenvandinenot direct access21:07
snizzook21:07
snizzoI'm also looking forward real background code execution...21:08
kenvandinewell, there might be a way to use an app specific location on the sdcard21:08
rickspencer3kenvandine, it's not clear form the docs what contentscope I want21:08
rickspencer3app? user?21:08
kenvandineapp21:08
kenvandinethat's per app21:08
kenvandinesnizzo, like /sdcard/APP_ID/blah21:09
kenvandineand you'd get rw access to that21:09
kenvandinenot sure if you can do that yet21:09
snizzoi have the same app, on android and ubuntu touch (more less ported). I'd thought that on ubuntu touch it would have run better (more compatible sdk since it's the main sdk) but it still runs better on android. Way better. Mostly because of rw limitations (but that's not critical) and the most for not having real multitasking. That's overkill.21:11
snizzoif you like feedback :)21:11
BOHverkillyes? ;)21:11
kenvandinesnizzo, rw limitations is generally a very good thing :)21:12
snizzoBOHverkill: hey!21:12
kenvandinesnizzo, but yes, it's a difference in the platforms21:12
BOHverkillhi snizzo21:12
kenvandineof course we think our approach is better for the user21:12
snizzoI'm just giving feedback telling you this limitations are in fact affecting user experience, that's all.21:12
snizzook :)21:13
kenvandineyeah, we're aware21:13
kenvandinein the end the user will be better off21:13
kenvandinebut we aren't there yet21:13
snizzoahh ok21:13
snizzoso it's in your plans to implement some kind of multitasking too?21:13
kenvandinenot my area21:13
rickspencer3\o/ my code crashed Unity :)21:15
rickspencer3lol21:15
snizzoah... that's the real problem imho. rw isn't critical at all21:15
snizzorickspencer3: happed to me a lot too21:15
snizzohappened*21:15
* kenvandine has a hard time crashing unity 21:15
kenvandine:-D21:15
snizzokenvandine: well in my case, just press the green arrow on ubuntu sdk and crash. Not unity, the whole X. Back to lightdm directly.21:16
kenvandineoh, on the desktop21:17
kenvandinenot the phone21:17
snizzoahhh yeah. No, never crashed on the phone21:17
rickspencer3oh, I crashed the phone21:17
kenvandinealthough that shouldn't crash unity on the desktop either21:17
kenvandine:)21:17
bartbesnothing a kill -11 can't fix ;)21:17
rickspencer3I think I brought down ContentHub21:17
kenvandinerickspencer3, unlikely... /me hides21:18
snizzobartbes: of course :D21:18
kenvandinerickspencer3, content-hub won't effect unity though21:18
rickspencer3kenvandine, ok, so I now can access the url of the file at qml: file:///home/phablet/.cache/flash.rickspencer3/HubIncoming/2/gd77-05-07d1t07.mp321:18
kenvandineon the app switching could, which we do via ubuntu-app-launch21:18
rickspencer3what do I do with it?21:18
kenvandinerickspencer3, shouldn't be there if you see the ContentStore in the request21:18
kenvandines/see/set21:19
rickspencer3kenvandine, um, I did set the contentstore21:19
kenvandinepush your code21:19
kenvandinei wonder if it's because you're using All21:19
snizzokenvandine: last question I promise. r permissions for sdcard are there or need to content hub again?21:19
kenvandinewhich is a very special case21:20
kenvandinesnizzo, i really don't know what's there now, but the plan is for you to be able to read from an app specific location on the sdcard21:20
rickspencer3kenvandine, ok, I pushed21:20
snizzookok21:20
kenvandinenot any location21:20
snizzook got it, thank you :)21:20
kenvandinerickspencer3, ok, that looks right21:21
kenvandinei bet if you change the type to Music it'll work :/21:21
kenvandineso ContentType::All is special, and it only exists in the qml bindings21:21
kenvandinethe backend doesn't know about it21:21
kenvandinei bet there's a case in the ContentStore code we don't handle it right21:21
kenvandinerickspencer3, please file a bug about that21:22
rickspencer3um21:23
rickspencer3kenvandine, should I change it to Music?21:23
kenvandinejust try it21:23
kenvandinei need to fix the bug though :)21:23
kenvandinerickspencer3, the alternative is to not set the store in the request, like you did before21:24
kenvandinethen use ContentItem.move(DIR)21:24
kenvandinewhich will move it to a new location21:24
kenvandineproblem is then you need to construct the path yourself21:24
rickspencer3it looks it just made a Music dir for me21:24
kenvandineyup21:24
kenvandinethat means it worked :)21:25
rickspencer3qml: file:///home/phablet/.cache/flash.rickspencer3/HubIncoming/2/gd77-05-07d1t07.mp321:25
rickspencer3yeah21:25
kenvandineso i have a bug in All handing21:25
kenvandineoh21:25
rickspencer3oops21:25
rickspencer3no21:25
rickspencer3qml: file:///home/phablet/.local/share/flash.rickspencer3/Music/gd77-05-07d1t07.mp321:25
kenvandineright21:25
kenvandineperfect21:25
kenvandinethat will be persistent21:25
rickspencer3right21:25
rickspencer3it's a little weird that it is "Music", but it will be hidden from users21:25
kenvandineyeah21:26
kenvandinei should fix the All handling there21:26
kenvandinerickspencer3, i need to run out to drive a kid21:26
kenvandinei'll bbl21:26
rickspencer3o/21:27
snizzokenvandine: sorry I have to bother you again. I have an app that uses xda data folder ~/.local/share/<appname>21:31
snizzobut only on bq e4.5 xdg folder aren't created on installation21:32
bartbesthey don't need to be21:32
snizzoso i can't use them, only in bq e4.5, and I own the E5 so I'm going crazy21:32
bartbesI'm fairly sure I looked this up recently, any app that uses the xdg folders must create them21:32
bartbesor is that not allowed?21:32
snizzoah21:32
snizzobartbes: I tried both, to directly use the folder (works in some devices) and to create it because it wasn't there and on some devices folder are alredy there, on some creation works, on someone elses creation is impossible21:34
bartbeshmm, I can't find it21:35
bartbesimpossible because you're not allowed to, or because it already exists?21:35
snizzobecause I'm not allowed to21:35
snizzotrouble is I'm facing different behaviour on different devices21:36
snizzoshould it make a difference installing click from the store or by hand?21:37
bartbesah, there we go "If, when attempting to write a file, the destination directory is non-existant an attempt should be made to create it with permission 0700. If the destination directory exists already the permissions should not be changed."21:38
bartbesI'm not sure, I'm fairly new to this myself, I just happen to have read a lot of the xdg specs :P21:38
snizzoah21:39
snizzothe problem for me is different behaviour on different devices21:40
=== ubot5` is now known as ubot5
=== elopio_ is now known as elopio

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