/srv/irclogs.ubuntu.com/2015/11/20/#ubuntu-app-devel.txt

mhall119rpadovani: I'm at a conference this weekend, so not on IRC much, if you need help ping popey01:51
popeymhall119, all sorted01:51
mhall119thanks popey :)01:59
* mhall119 should change his nick01:59
=== mhall119 is now known as mhall119|fossetc
zzarrhello! I get this error trying to use bluetooth in Ubuntu SDK (Ubuntu version: 15.10) "error: Unknown module(s) in QT: bluetooth"08:34
zzarrthis is the compiler output ".../ubuntu-sdk-15.04-armhf/qt5-qmake-arm-linux-gnueabihf" exited with code 3.08:38
=== chihchun_afk is now known as chihchun
DanChapmanzsombi: hey! in the UITK 1.3 ListItem is it possible to declare actions only for the "right-click" context menu and not be in the leading/trailing actions?10:12
zsombiDanChapman: nope, yet it has to be either in leading or trailing or both10:24
zsombiDanChapman: what we have in ListItem is only a temporary solution till we get the ContextMenu in place10:25
DanChapmanzsombi: ahh that's a bummer. :-( any suggestions on how I can solve my current issue in dekko https://docs.google.com/document/d/1ohaF-RY5d927wkco-wxHvfEB4dehEiz5KWGs6JpauBs/edit?usp=sharing10:48
DanChapmanI want to avoid having the two seperate context menus10:49
=== _salem is now known as salem_
zsombiDanChapman: just commented on the doc11:17
DanChapmanzsombi: thanks! i'll take a look in a minute11:18
mcphailDo we now have a magic switch to prevent the screen from dimming in apps? What is the invokation? Does it prevent the screen from switching off as well?12:09
ahayzenmcphail, looks like it would be something like this https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1462489/comments/21 (probably worth reading the other comments after as well)12:15
ubot5Ubuntu bug 1462489 in ubuntu-system-settings (Ubuntu) "Allow apps to keep the screen on" [Wishlist,Confirmed]12:15
VsyachePuzI want to learn on how to implement the following feature: my program performs long process (internet crawling by specification), user chooses "minimise to progress bar" icon. windows minimizes, and LONG progress bar appers in between system menu and ApplicationIndicators. How to implement this?12:16
VsyachePuzIn MATE there is Panel Applets, whose allow to implement such feature. But does unity-panel support them ?12:18
VsyachePuzdoes ubuntu-panel support panel applets, similar to DBus-based panel applets of gnome and mate?12:23
mcphailahayzen: so if I add the "keep-display-on" apparmor permission does the screen stay on automatically?12:23
ahayzenmcphail, the apparmor and the state in your QML, also note what was said here https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1462489/comments/4112:24
ubot5Ubuntu bug 1462489 in ubuntu-system-settings (Ubuntu) "Allow apps to keep the screen on" [Wishlist,Confirmed]12:24
mcphailahayzen: any idea how to implement that in a non-qt app? Trying to keep screen on in SDL app12:25
ahayzenmcphail, erm, not sure someone like mzanetti might though ^^ ?12:25
mzanettione sec12:26
mcphailahayzen: thanks12:27
mcphailmzanetti: there's a comment about sending a dbus message, but dbus is a bit beyond me... ;)12:27
mzanettiMirv, where do we keep the qt distropatches?12:29
mzanettifound it12:31
mzanettimcphail, http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/qtsystems-opensource-src/wily/view/head:/debian/patches/unity-screen.diff12:31
mzanettimcphail, basically comes down to conencting to "com.canonical.Unity.Screen", "/com/canonical/Unity/Screen", "com.canonical.Unity.Screen" on the system bus12:31
timpzbenjamin: do you know what is happening here? https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/151810612:32
ubot5Ubuntu bug 1518106 in ubuntu-ui-toolkit (Ubuntu) "Using "$ source export_modules_dir.sh" causes the error "bash: /bin/build_paths.inc: No such file or directory"" [Undecided,Confirmed]12:32
mzanettimcphail, and calling "keepDisplayOn" there12:32
mzanettimcphail, that will return an int, store that int, and call removeDisplayOnRequest with that int as argument when your app is unfocused or closed12:32
mcphailmzanetti: cheers. Will have a look at that. Can non-Qt apps interact with dbus?12:33
mzanetti(or whenever else you want to not keep the screen lid any more - play nice or I will rate your app badly :D)12:33
mzanettimcphail, yes12:33
mzanettimcphail, what toolkit/language is your app?12:34
mcphailmzanetti: it is Baldur's Gate, running under GemRB usinf SDL212:34
mcphailmzanetti: rate it badly and I'll send magic missile at you12:35
mzanettiyou should be able to link to c or even c++ and qt from that, no?12:35
mzanettiisn't SDL based on c?12:35
mcphailmzanetti: yes. I can do the necessary in12:36
mcphailC12:36
=== chihchun is now known as chihchun_afk
mcphailmzanetti: thanks for your help12:37
mzanettimcphail, so yes, find some dbus-lib written in C, or figure how to link c++ to it12:37
VsyachePuzdoes ubuntu-panel support panel applets, similar to DBus-based panel applets of gnome and mate?12:37
mcphailmzanetti: SDL links to dbus anyway, so the libs capability should be there12:38
ahayzentimp, just of interest what does "dirname $0" give you ?12:39
ahayzentimp, as if i change ". `dirname $0`/build_paths.inc" .. to .. ". ./build_paths.inc" then it works as that file is in the same directory for me12:40
Mirvmzanetti: ok. Debian git, LP mirror also12:41
timpahayzen: "dirname $0" always gives me "."12:41
ahayzentimp, it gives me "/bin"12:41
ahayzentimp, haha omg! no way found it...12:42
ahayzentimp, if i use gnome-terminal i get '.' .. if i use terminator i get '/bin'12:42
* ahayzen adds that to the bug report12:43
timpohh12:43
timpI  never tried that12:43
ahayzenyeah it works fine in gnome-terminal12:43
* ahayzen wonders what terminal Victor is using12:43
timp$0 should be the full path+name of the script that you are running..12:44
ahayzentimp, commented, so now you are going to tell me i'm using the wrong terminal :-P12:48
ahayzentimp, why can't you do this instead? ". $PWD/build_paths.inc" ?12:58
timpahayzen: I'm not sure, that's why I was asking zbenjamin I think he added the $0 ;)13:00
ahayzen:-)13:01
zbenjamintimp: he did not :)13:02
ahayzenbzr blame may argue its case ;-)13:04
=== dpm is now known as dpm-afk
=== chihchun_afk is now known as chihchun
=== dpm-afk is now known as dpm
InnercodeHi 'm getting headaches about my apparmor problem. I've updated my BQ4.5 to OTA-8 and my desktop have the latest updates as well. When I create a new HTML5 app and run it on my phone no styles or js are applied because apparmor denied it. The bug is registered here (https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1477580) but the state is fixed. When I run the app on my desktop it's ok. How can I 14:39
ubot5Ubuntu bug 1477580 in apparmor-easyprof-ubuntu (Ubuntu) "[HTML5] AppaArmor denials to used the system installed UI SDK files, when webapp container used as a launcher" [High,Fix released]14:39
jdstrandInnercode: on the desktop it isn't going to run confined unless you are doing something special14:44
jdstrandInnercode: also, this was fixed in 15.10, not the phone14:44
jdstrandpmcgowan: hey, so, Innercode is seeing bug #1477580 on the phone (update to webapp template). mardy wants bug #1512667 (update to accounts policy group)14:46
ubot5bug 1477580 in apparmor-easyprof-ubuntu (Ubuntu) "[HTML5] AppaArmor denials to used the system installed UI SDK files, when webapp container used as a launcher" [High,Fix released] https://launchpad.net/bugs/147758014:46
ubot5bug 1512667 in apparmor-easyprof-ubuntu (Ubuntu) "Enable Online Accounts v2 on vivid overlay PPA" [Undecided,New] https://launchpad.net/bugs/151266714:46
jdstrandpmcgowan: with these changes, all webapps and anything using the accounts policy group will be recompiled in ota9. is this acceptable?14:47
pmcgowanjdstrand, and that means a first boot delay?14:48
jdstrandyes14:48
pmcgowanwhats our choices14:48
jdstrandto do it or to not do it :)14:48
pmcgowanheh14:48
jdstrandin this case there is no additional policy group trick14:49
pmcgowansounds like we need to if I understand right14:49
pmcgowanis it on the order of seconds, minutes?14:49
jdstrandit seems the html5 changes landed without this (I'm guessing), so that kinda forces our hand14:49
jdstrandwell, it depends on the device14:49
jdstrandall webapps14:49
jdstrandand anything that uses accounts14:50
jdstrandthe accounts change will affect a relatively small number of apps14:50
jdstrandI believe14:50
pmcgowanjdstrand, so is there a current issue on ota8 we need to fix?14:50
jdstrandpmcgowan: I'm not sure when the html5 issue came up. Innercode mentioned he is struggling to develop on html5 app on BQ ota814:51
jdstrandbut this is the first I've heard of it for stable phone overlay14:51
jdstrand(we fixed it in wily)14:51
Innercodejdstrand pmcgowan Had this problem on OTA-7 as well14:52
pmcgowanhmm that sounds bad14:52
jdstrandpmcgowan: mardy has been asking for this change to the accounts plugin for a while14:52
jdstrands/plugin/policy group/14:52
pmcgowanI am still confused is this affecting installed html apps?14:52
pmcgowansounds like14:52
pmcgowanalexabreu, ^^14:53
jdstrandyeah, I don't understand the underlying changes that is causing this14:53
jdstrands/is/are/14:53
jdstrandthis is the wily changelog entry for apparmor-easyprof-ubuntu: ubuntu/ubuntu-webapp: allow read access to /usr/share/ubuntu-html5-theme and /usr/share/ubuntu-html5-ui-toolkit (LP: #1477580)14:54
ubot5Launchpad bug 1477580 in apparmor-easyprof-ubuntu (Ubuntu) "[HTML5] AppaArmor denials to used the system installed UI SDK files, when webapp container used as a launcher" [High,Fix released] https://launchpad.net/bugs/147758014:54
jdstrandfrom the bug description: "When launching an app create with the default HTML5 template in qtc on the device (it now uses the 'ubunu-webapp' apparmor template), the css styles are not applied at all."14:55
pmcgowanyikes14:55
pmcgowanhow did that happen14:55
jdstrandbut that was for wily14:55
jdstrandmaybe the new sdk?14:55
jdstrandno, Innercode said this was with ota7 too14:56
alexabreujdstrand, pmcgowan mmmh this really seems related to what https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1477580 was fixing14:56
ubot5Ubuntu bug 1477580 in apparmor-easyprof-ubuntu (Ubuntu) "[HTML5] AppaArmor denials to used the system installed UI SDK files, when webapp container used as a launcher" [High,Fix released]14:56
pmcgowanalexabreu, right so do we need to hotfix this?14:56
jdstrandalexabreu: yes, that is the bug I am talking about :)14:56
alexabreupmcgowan, it shouldnb't be hotfixed ... jdstrand released it some time ago right?14:56
jdstrandalexabreu: we fixed that in wily. Innercode said he is seeing it on ota7+14:57
alexabreuyes14:57
jdstrandit is not fixed in stable phone overlay14:57
alexabreuah!14:57
jdstrandthe question is, why are we seeing it in stable phone overlay in ota7+14:57
jdstrandand should we regenerate all webapp policy in ota9 (first boot slowdown)14:58
jdstrandInnercode: could you paste your security manifest for your app at paste.ubuntu.com?14:59
Innercodejdstrand The contents of the apparmor file?15:00
jdstrandInnercode: in your click manifest, you will have something like this:15:01
jdstrandname: foo15:01
jdstrandhooks:15:01
jdstrand  bar:15:01
jdstrand    apparmor: path/to/file15:01
Innercodehttp://paste.ubuntu.com/13366210/15:03
=== chihchun is now known as chihchun_afk
jdstrandInnercode: right, I need MPDClient.apparmor15:04
jdstrandInnercode: actually, and MPDClient.desktop15:04
Innercodejdstrand: http://paste.ubuntu.com/13366245/15:06
jdstrandInnercode: thanks15:10
jdstrandalexabreu (and pmcgowan): should I proceed with preparing this?15:10
InnercodeI really need to go now. My client stays connected so I will read all the messages since now. Many thanks anyway :)15:11
alexabreujdstrand, I think we should yes, ...15:11
pmcgowanjdstrand, alexabreu what is the conclusion, is this currently afftecting html apps on the release15:13
mardyjdstrand: of course, the other option is to create a new policy (IIRC I proposed "accounts-read"), but it's not as nice (and you suggested modifying the existing "accounts" one)15:21
jdstrandpmcgowan: thoughts on accounts policy group change? I think this is less disruptive. anecdotally, I have 19 profiles that use it on my dogfooding arale. I just timed recompiling them: 34 seconds15:23
jdstrandpmcgowan: I defer to alexabreu on if html apps are affected on the release15:23
alexabreupmcgowan, jdstrand yes they are15:24
alexabreuso we have to hotfix15:24
jdstrandpmcgowan: ^. based on that, I think we should do both. interestingly, I have fewer webapps than accounts consumers15:25
pmcgowanalexabreu, ok then, can you also follow up on some test to catch this15:25
alexabreupmcgowan, yes that's precisely what I was doing15:26
pmcgowanalexabreu, jdstrand I will open an rtm taskon that bug15:26
jdstrandwhat about the accounts change?15:30
jdstrandpmcgowan: also, fyi, http://paste.ubuntu.com/13366530/15:30
jdstrandpmcgowan: a little over a minute on arale if we change both15:30
pmcgowanthat seems fine15:31
jdstrandpmcgowan: if you run that command yourself, make sure that the screen doesn't dim15:31
jdstrandcause the system goes into energy saving mode and it affects compile times15:31
jdstrandpmcgowan: I agree. so, fix both?15:32
pmcgowanjdstrand, yes15:32
=== chihchun_afk is now known as chihchun
jdstrandmardy: this is all you want, correct? http://paste.ubuntu.com/13366564/15:40
mardyjdstrand: if the 15.10 policy is a symlink to 1.3, then yes, that's all16:04
jdstrandmardy: this is for stable phone overlay and so no 15.10 poliy. it just adds that to what is already there16:09
jdstrandpmcgowan: can you adjust this bug accordingly: https://bugs.launchpad.net/canonical-devices-system-image/+bug/151266716:10
ubot5Ubuntu bug 1512667 in apparmor-easyprof-ubuntu (Ubuntu RTM) "Enable Online Accounts v2 on vivid overlay PPA" [High,In progress]16:10
jdstrandpmcgowan: I started it, but couldn't do everything16:10
jdstrandmardy: but yes, 1.3 policy (ie, what the stable phone uses) is a symlink to 1.116:13
=== chihchun is now known as chihchun_afk
mardyjdstrand: right, for 15.10 you already did it in wily. So yes, those changes look fine!16:34
jdstrandthanks16:34
jdstrandmardy: if you are interested: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-04816:35
adam_from_farfarhellou :316:50
adam_from_farfarguys, I have just installed QtCreator, phone is connected to pc, when I try to deploy the app, Python complains for a missing module. The log is here. http://paste.ubuntu.com/13367627/ I cannot either install the module as it does not exist or do anything else :/ Anyway, when I ingore the warning, the app is correctly deployed to phone, but I have16:52
adam_from_farfarno idea what can be the side effect of issues with that python module.16:52
=== chihchun_afk is now known as chihchun
=== popey_ is now known as popey
davmor2ahayzen: pfff bug lists everywhere you only need to look at mine https://bugs.launchpad.net/~davmor217:27
ahayzendavmor2, haha but this is only for 1 feature ;-)17:28
ahayzendavmor2, https://bugs.launchpad.net/bugs/+bugs?field.tag=bgplaylist ;-)17:28
davmor2pffff only 65 that's a tenth of my list ;)17:29
ahayzenhaha17:30
ahayzeni am a dev not QA :-P17:30
ahayzenwait until you guys start testing it :')17:30
davmor2ahayzen: silo 009 is in the queue17:32
davmor2:D17:32
ahayzenyup :-D17:32
ahayzengetting there slowly17:32
davmor2It will fail at least twice17:32
ahayzenprobably17:32
ahayzenjhodapp, davmor2 predicting your future ^^ ;-)17:33
jhodappso cynical! ;p17:34
davmor2ahayzen, jhodapp: It is a HUGE! silo there is no way it's perfect first try sorry :)17:34
ahayzenthat just means we need todo more testing first then :-)17:34
ahayzenlol17:34
davmor2ahayzen: bluez5 has taken a week to land and is smaller, admittedly it touches more parts of the system but hey :)17:36
ahayzen:-) thats been baking for a while as well17:36
davmor2and that was with months of prep17:36
jhodappdavmor2, it's definitely not perfect17:36
davmor2ahayzen: see jhodapp it already setting up the excuses for the fail ;)17:37
jhodappwe did pretty thorough testing, but it's complex stuff and edge cases can be hard to test for17:37
ahayzenwell it plays music when i'm on the bus...so ship it ?17:37
jhodappdavmor2, someone has to prepare you properly ;)17:37
ahayzen;-)17:37
davmor2jhodapp: yeah that's what I say I will be amazed if this passes first time :)17:38
jhodappahayzen, I like that!17:38
jhodappdavmor2, buy me a beer if it does!?17:38
=== chihchun is now known as chihchun_afk
davmor2jhodapp: :)17:38
* davmor2 bets jhodapp hasn't tested with the new bluez5 stack yet ;)17:39
jhodappnope :)17:40
jhodapphave not17:40
davmor2See edge case number one :D17:41
jhodapphaha17:41
jhodappdavmor2, I will test with it though once it lands17:42
ahayzenwhen do we get media-controls via bluez5 and bgplaylists :')17:42
jhodappbluez5 is landing now, so soon :)17:44
jhodappmaybe by Monday17:44
ahayzensweet \o/17:44
ahayzenOTA9 is gonna be big lol17:45
jhodappyep :)17:45
ahayzenand we are only a few days into it lol17:45
davmor2ahayzen: lots of it has been building for months and we are trying to get all the big bits in place as early as possible to avoid the last minute racing around like a headless chicken and then having to drop it anyway :)17:46
ahayzenhah :-)17:47
=== Innercode_afk is now known as Innercode
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== Innercode is now known as Innercode_afk
=== salem_ is now known as _salem

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