/srv/irclogs.ubuntu.com/2016/01/28/#ubuntu-app-devel.txt

elimistevedavidcalle and others -- I know that Go scopes for Ubuntu Phone should be developed on Ubuntu 15.04, but what about apps? Can/should I write Go apps on 14.04?02:13
=== chihchun_afk is now known as chihchun
davidcalleelimisteve: I think you can, yes. bzoltan_ , can you confirm? ^08:52
bzoltan_elimisteve: davidcalle: the only and biggest blocker of any sort of scope development on 14.04 is the unity-scope-tool, what is used to test the scope you develop. That tool needs unity8 bits that are simple not available on 14.04... and sadly never will be :( The solution would be to get rid of that tool and use the emulator or a simulated unity8 session in a nested Mir.08:54
JamesTaitGood morning all!  Happy Thursday, and happy Data Privacy Day! 😃10:00
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== _salem is now known as salem_
elijahhey guys, is it possible to set a click handler on another applications application indicator?12:19
elijahBetter question, does Ubuntu emit click events that other applications can see?12:20
elijahI want to run `sudo iwlist wlan0 scan` whenever network-manager application indicator is clicked.12:21
elijahI think this is close enough to my question - http://askubuntu.com/questions/224709/how-to-run-an-action-when-clicking-on-an-appindicator12:23
davmor2elijah: why would you run that?12:23
elijahdavmor2: because network-manager has too long of a delay to detect my hotspot after I turn it on.12:23
elijahdavmor2: There is a patch to fix that but I figured an easier way is to just scan for networks on click12:24
elijahI don't really want to maintain a patched version of network-manager12:24
elijahFrom the answer on that thread it doesn't appear that Ubuntu has click events emitted. Which I don't want to believe :D12:25
davmor2elijah: no, because then what will happen is instead of you getting a useful list that network manager can use you'll hog the scan time so network manager can't use it if it does connect it will then be disconnected by networkmanager when it does it's scan surely, maybe I'm wrong just saying12:26
elijahdavmor2: If I run that command and then click Network Manager the network shows up immediately, don't they use the same source?12:27
elijahdavmor2: But I do see what your are saying about the delay. Probably better to go the patched route.12:28
davmor2elijah: if your goal is to speed up network manager then maybe just turn off wifi and then turn it back on again this forces network manager to scan straight away rather than having to wait12:28
elijahdavmor2: Yeah, I also do that since I have a hard toggle for it. I just want it to work as one would expect.12:29
elijahdavmor2: I will go the patched route12:29
davmor2elijah: technically it is but it isn't designed for this new fangled mobile world where networks can appear and disappear at will :)  It is slowly being fixed though12:31
elijahdavmor2: Oh, I didn't know that, do you have more info on that discussion?12:32
davmor2elijah: there is a bug somewhere but I have too many to remember right now so if it isn't one I'm looking at they disappear.  It is basically being worked on for the Phone which uses multiple sources that can appear and disappear so that will land for desktop too so should improve things across the board12:34
elijahdavmor2: OOOohhhhh, that makes sense, very nice!12:34
elijahdavmor2: If you happen to come across it please ping me anytime.12:34
davmor2elijah: yeah it'll come up again soon I'm sure :)12:36
elijahdavmor2: I do see that the SCAN_INTERVAL_MIN is 3 seconds. I am guessing the algorithm to detect when is the tricky part. http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/nm-device-wifi.c?id=0.9.8.8#n7612:36
davmor2elijah: yeah so there is work ongoing from canonical and from the network manager team and they are working together to try and make the experience much better over all, so I know there are a couple of upstream bugs and 2-3 in LP too12:38
elijahdavmor2: Very encouraging, well, I will look for them, I can help test that at a minimum.12:39
elijahI found these but they are quite ancient, https://bugzilla.gnome.org/show_bug.cgi?id=498887 https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/13078612:45
ubot5Gnome bug 498887 in general "Refresh wireless network list" [Normal,Resolved: fixed]12:46
ubot5Launchpad bug 130786 in NetworkManager "[gutsy] NetworkManager Feature Request - manually trigger ssid scan" [Medium,Fix released]12:46
elijahThis one is more recent though, but no collaboration mentioned here - https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/149161212:47
=== chihchun is now known as chihchun_afk
ubot5Launchpad bug 1491612 in network-manager (Ubuntu) "doesn't scan for available wifi networks often enough + no way to manually force a scan" [High,Confirmed]12:47
elijahI will take this to #ubuntu-dev though12:47
elijah* #ubuntu-devel12:48
=== BOHverkill is now known as BOHverkill___
ahayzent1mp, i don't think bug 1524901 and bug 1518002 are duplicates, One is stating that if you have the header locked in the visible=false state then it animates on startup. The other states that some apps that have a header get an extra gap at startup. Although they may be linked in terms of how they'll be fixed15:18
ubot5bug 1518002 in ubuntu-ui-toolkit (Ubuntu) "duplicate for #1524901 Header is shown at startup and slides out even though it is set to be invisible and locked" [High,In progress] https://launchpad.net/bugs/151800215:18
ubot5bug 1518002 in ubuntu-ui-toolkit (Ubuntu) "Header is shown at startup and slides out even though it is set to be invisible and locked" [High,In progress] https://launchpad.net/bugs/151800215:18
t1mpahayzen: hmm, interesting15:19
t1mpahayzen: I have a fix that fixes weather app, but not dekko and music15:19
ahayzeneg compare weather vs music15:19
ahayzenweather, you see the header on startup and the header slides out (we expected the header not even to be shown)15:20
ahayzenmusic, when starting up, you get a white gap above the header temporarily causing all the content to bounce around15:20
t1mpahayzen: which app is meant by calculator?15:20
t1mpis that Tiny Calculator in the store?15:21
ahayzenthat coreapps one15:21
ahayzen*the15:21
ahayzenas that doesn't have a header either15:21
t1mpsomehow that's not in my image (or I cannot find it), and I cannot find' Calculator' in the store15:21
ahayzenit is harder to see that on it now15:21
ahayzenare you on ota9 ?15:22
ahayzenmaybe it had its framework bumped15:22
t1mpoh, could be15:22
ahayzenbut i can't see the issue that badly on that one anymore weather shows the issue the best15:22
t1mpI just flashed rc-proposed on mako. That gave me image r35215:22
ahayzenhmm i'm on rc-proposed and i have it15:23
t1mpahayzen: for weather I have a fix that works :)15:23
t1mpbut it doesn't work for Dekko and Music, so I guess you are right they are different bugs.15:23
ahayzen:-)15:23
DanChapmanDekko uses a custom header so that's probably why it doesn't work for you :-p15:24
ahayzent1mp, music and messaging app have the same white gap issue IIRC15:24
t1mpon Clock I am not sure the bug still exists. There is an animation when I start clock, but that seems to be because size of the clock itself is increasing15:24
* DanChapman hasn't got round to changing it yet15:24
t1mpDanChapman: right, but I'm trying to figure out why it quickly shows white at the top first.15:24
t1mpDanChapman: do you think that's because of a custom header implementation?15:25
DanChapmant1mp, 2 secs just reading those bug reports. I haven't noticed the white at the top before15:27
t1mpahayzen: do you happen to have a test program to reproduce https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1524901 ?15:28
ubot5Launchpad bug 1524901 in ubuntu-ui-toolkit (Ubuntu) "When an application starts there is temporarily a white gap at the top" [High,In progress]15:28
ahayzenDanChapman, it is difficult to see on white background'd apps, try starting music once and then you'll spot it15:28
ahayzent1mp, the music app? ;-) i don't have a mini-app, although i could try and make one if you want? messaging/contacts also jump around15:29
=== sagar is now known as Guest25594
t1mpahayzen: it would be very useful to have a mini-app15:30
ahayzent1mp, i'll see what i can do, can you un-duplicate the bug ?15:30
t1mpin music-app I see the whole background flashing white initially15:30
ahayzeni get a top gap that is white15:30
t1mpahayzen: did you un-duplicate it? I didn't yet, but it seems the duplicate is gone...15:31
ahayzenoh..15:31
ahayzenmagic, i didn't :-)15:32
DanChapmanahayzen, is it only on device you see it? or should I be able to reproduce on my desktop?15:32
t1mpor I clicked it by accident when I wasn't watching :s15:32
ahayzenmaybe launchpad is gaining AI...15:32
t1mpoh dekko crashes on startup now for me15:32
ahayzenDanChapman, i've only seen on mako and had it reported being worse on the Bq's ...so yeah i'd say only device15:32
t1mpI added google account, and I deleted that one again. Now when I start Dekko I briefly see "New account detected" and then the app closes15:33
t1mpDanChapman: ^15:33
dpmhi DanChapman, since a few days, Dekko crashes on start for me - does this help in determining what could be happening? -> http://pastebin.ubuntu.com/14688739/15:33
dpmoh, it's similar to t1mp's issue15:33
DanChapmanack, i'll change the background color and see what happens15:33
DanChapmandpm, t1mp I haven't had any reports of that so far. sounds like a new bug. It would be handy if you can grab the imap log from ~/.cache/dekko.dekkoproject/logs/IMAP/* straight after the crash15:39
dpmDanChapman, http://pastebin.ubuntu.com/1468882615:43
dpmDanChapman, but that happens to be for the account I removed15:43
=== nik90 is now known as nik90_
DanChapmandpm thanks. Do you use two factor auth? also where did you remove the account in system settings or in dekko? removing in dekko doesn't remove from online accounts atm, you have to do it from OA and it will get removed from dekko (well it should)15:45
t1mpDanChapman: I removed it in dekko, and it is still listed in online accounts15:47
t1mpDanChapman: if I disable the account for dekko in the system settings, the next time I start Dekko it no longer crashes, but asks me to add an account15:47
t1mpDanChapman: the account that I was testing with does not have 2FA15:48
t1mpoh, wait. It does have :)15:49
DanChapmandpm "16:37:50.09210  <<<  y1 NO [ALERT] Please log in via your web browser" suggests you use 2fa.15:49
DanChapmandpm t1mp see this comment https://bugs.launchpad.net/dekko/+bug/1527331/comments/815:50
ubot5Launchpad bug 1527331 in Dekko "Multiple Accounts Generated (Google Apps, Gmail)" [Undecided,Confirmed]15:50
DanChapmant1mp yeah you need to delete the account from system settings for it to get fully removed from dekko. If you just disable Dekko;s access to that account it retains the cache & internal configs until that account no longer exists. But if you just delete it in dekko but access is still granted in OA then you will keep seeing the new account detected prompt. Which I presume shortly after that your seeing the crash?15:54
t1mpDanChapman: yes15:55
DanChapmanRight so the inability to handle 2fa is causing the crash. I'm not sure what the best way is to catch that and say "Hey this isn't going to work with this google account".16:01
=== BOHverkill_ is now known as BOHverkill
t1mpahayzen: do you think it is possible to reproduce https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1524901 with a mini-app?16:09
ubot5Launchpad bug 1524901 in ubuntu-ui-toolkit (Ubuntu) "When an application starts there is temporarily a white gap at the top" [High,In progress]16:09
DanChapmant1mp, ahayzen I'm not seeing this white gap in Dekko after changing the background color16:12
=== JanC_ is now known as JanC
DanChapmanon mako or krillin16:12
t1mpDanChapman: so the bug is fixed when you set a different background color for the app?16:14
DanChapmant1mp, i've never seen the bug in dekko so I can't say it fixes it :-)16:14
t1mpDanChapman: ah, so nothing changed. You didn't see the bug before changing the color either.16:15
pmcgowannik90_, you around?16:15
nik90_pmcgowan: hey,16:15
pmcgowannik90_, hey, sad to hear you don't see updates16:16
DanChapmant1mp, nope not seen the bug at all. as far as I can tell nothing has changed.16:16
nik90_pmcgowan: just unlucky with every ota I guess :/ .. never got a system notification that a OTA is available until now.16:16
pmcgowannik90_, so you did get one?16:17
pmcgowanI get them very reliably of course16:17
nik90_pmcgowan: no I haven't got OTA-9 yet16:17
pmcgowannik90_, what happens if you use sudo system-image-cli -n16:17
nik90_https://paste.gnome.org/pkni5jmw316:18
pmcgowannik90_, use sudo16:18
* nik90_ tries16:18
nik90_pmcgowan: it keeps getting stuck at [systemimage] Jan 28 21:48:44 2016 (21006) [/com/canonical/applications/download/282d714b37764695be081d7b1e9e4646] Running group download reactor ... it could be that my internet speed16:22
nik90_trying this from india16:23
pmcgowanoh16:23
pmcgowanyeah could be too slow, or could be the network stack is confused16:23
pmcgowannik90_, try toggling wifi maybe16:23
nik90_hmm I have 8.95 Mbps according to speedtest.net16:24
t1mpDanChapman: can you perhaps comment on https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1524901 too that the bug is not reproducible for you?16:25
ubot5Launchpad bug 1524901 in ubuntu-ui-toolkit (Ubuntu) "When an application starts there is temporarily a white gap at the top" [High,In progress]16:25
t1mppmcgowan: did you reproduce this bug? https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/152490116:25
DanChapmant1mp, sure :-)16:25
pmcgowant1mp, yes its easy to see16:26
pmcgowant1mp, the panel jumps around as it first displays16:27
pmcgowanoh rats16:29
pmcgowannik90, https://bugs.launchpad.net/canonical-devices-system-image/+bug/150808116:29
ubot5Launchpad bug 1508081 in ubuntu-download-manager (Ubuntu) "Fails to receive OTA updates" [High,In progress]16:29
pmcgowanthere are a few related bugs16:29
pmcgowannik90, can you get logs from /var/log/ubuntu-download-manager/16:30
nik90pmcgowan: sure16:30
pmcgowanthere may be a ton, so just therecent ones maybe16:30
dpmDanChapman, I removed the account from online accounts, added it again, dekko still crashes on start. What should the workflow be?16:31
nik90pmcgowan: output of ubuntu-download-manager.ERROR -> http://paste.ubuntu.com/14689129/16:32
pmcgowanoh wow16:32
pmcgowannik90, can you put that into the bug above16:33
DanChapmandpm your issue is you have 2 factor auth enabled. For that you need to create an account via the add "IMAP account" option and get an app specific password and use that instead of online accounts https://support.google.com/mail/answer/185833?hl=en&rd=116:33
pmcgowanElleo, ^^16:33
pmcgowannik90, does it mean memory or disk16:34
pmcgowannik90, you have free disk?16:34
nik90I added the output to the bug report16:34
nik90checking disk usage16:34
nik90pmcgowan: storage 1.3 GB free16:35
Elleopmcgowan: perhaps we should be purging the downloads sqlite database periodically16:35
dpmDanChapman, I think I'll pass and won't use the account with Dekko, I wasn't too sure about the security implications last time I read that article. How can I make Dekko ignore that account and not crash, though?16:35
Elleopmcgowan: although I don't think sqlite loads everything into memory16:35
pmcgowannik90, Elleo wight whats the size of /var/cache/ubuntu-download-manager/downloads.db16:35
Elleonik90: what does 'free' say about memory usage as well, might just be that apps are taking up so much memory there isn't much to spare at all16:36
pmcgowanElleo, or the system just gets in a state where memory is sused and the background process can't get any?16:36
Elleonik90: (assuming things are still in the same state they were when that message happened)16:36
Elleopmcgowan: yeah16:36
pmcgowanthis explains a lot16:36
nik90pmcgowan: I don't have ubuntu-download-manager folder in the /var/cache directory16:36
Elleopmcgowan: well we do get very tight on memory, hence apps getting killed a lot16:36
pmcgowanhow can that be16:37
Elleohang on, that log is from  2016/01/1216:37
DanChapmandpm well with 2fa the app specific password is the only way you can access your mail with imap. gmail is just returning NO when you present the oauth token. Anyway for now you can just disable dekko's access to that account in online accounts system settings. Then dekko will no longer try to use it.16:38
Elleopmcgowan: does the update fetcher run as root? if not it'll be logged under the user logs in ~/.cache/ubuntu-download-manager16:38
pmcgowando not know16:39
dpmDanChapman, thanks. Yes, I had already tried disabling the account from OA, but the app crashes nevertheless16:39
nik90Elleo, pmcgowan: Here is the output of ubuntu-download-manager.INFO in /var/log/ubuntu-download-manager -> http://paste.ubuntu.com/14689175/16:40
nik90Elleo: I do have a ubuntu-download-manager folder in ~/.cache16:40
ElleoI0128 20:44:51.668818  4255 network_session.cpp:68] Connection type gsm <-- it thinks its on GSM16:40
Elleoiirc it won't do automatic downloads of updates in GSM mode, unless you've set it to allow that in settings16:41
ElleoI think it'll just queue it up and wait for the network type to change to wifi16:41
ElleoI think we need to rethink the logic of that16:41
Elleoas queueing it up then prevents the user from being able to manually press the download button I think16:42
Elleonik90: can you try connecting to wifi and see if it suddenly starts going?16:42
DanChapmandpm, ahh ok. I need to look into why it's still trying to use it then. At the moment the only way to recover that is to remove the config for that account from ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf16:43
nik90Elleo: I don't have wifi here in India :P...I use 3G and use wifi tethering for my laptop16:43
nik90I suppose I could use another phone's wifi tether to do it perhaps16:43
Elleonik90: maybe try changing the auto-download option in system settings?16:43
Elleonik90: I'm not sure if that'll have an effect on downloads that are already queued though, so you might need to restart after16:44
dpmDanChapman, ok, will try that, thanks!16:45
nik90will try...wil goo offline until phone restarts16:45
nik90_Elleo, pmcgowan: Got the update!16:48
nik90_after changing to always download16:48
nik90_and the rebooting phone16:48
Elleoyeah, think we need to rethink how system-settings/system-image-updater handles that16:52
Elleoneed some way to allow it to be manually started after is been stuck in the queue while still on GSM16:52
dpmDanChapman, is there a way to identify the account in the .conf file? From the 2 accounts I've had enabled for dekko, I can identify one by the e-mail, but the @canonical.com one I want to delete, I cannot see16:52
dpmQ:q16:53
dpmI might just delete the config file and start anew, seems I've got a bunch of accounts listed in there16:55
* DanChapman deletes his reply16:55
dpm:)16:56
nik90_Elleo, pmcgowan: Should I update the bug report?16:56
DanChapmandpm, oh so you have a load of orphaned configs. They should be getting cleaned up if no longer used. Yeah deleting the config probably the quickest way :-)16:56
Elleonik90_: wouldn't hurt to have that as an extra data point, I'm not sure if everyone's issue there is the same or not16:57
dpmDanChapman, that seems to work, app no longer crashes, now setting up accounts. Quick q: how does the "new account detected" logic work? Does it look at existing accounts in OA upon first launch?16:58
t1mpahayzen: I did not manage to reproduce https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1524901 except with music-app17:00
ubot5Launchpad bug 1524901 in ubuntu-ui-toolkit (Ubuntu) "When an application starts there is temporarily a white gap at the top" [High,In progress]17:00
DanChapmandpm. excellent. Yeah it checks OA on launch and also each time Dekko comes into the foreground.17:00
dpmDanChapman, ok, cool. Another question: is the .pot file up to date? I'm seeing untranslated strings such as "create identity", which I can't find on https://translations.launchpad.net/dekko/0.6/+translations17:04
pmcgowannik90_, Elleo so what was the net on the issue?17:05
pmcgowanoh you dont have wifi17:05
pmcgowanthats a bug we should not require wifi17:06
DanChapmandpm it should be. I updated it ~2 weeks ago and been in string freeze since then.17:08
DanChapmandpm http://bazaar.launchpad.net/~dpniel/dekko/trunk2/view/head:/po/dekko.dekkoproject.pot#L126717:08
dpmDanChapman, trunk2 - is that the right branch LP uses for importing the translations?17:09
* dpm checks17:09
DanChapmandpm oh while your here. Dekko has alot of italian translation waiting on review for a long time now. Also I have been talking to someone who wants to contribute italian trans but hasn't been able to get a response from the italian translators team since first contacting them in august. What can be done about both?17:10
dpmperhaps ping rpadovani when he's online?17:11
dpmor Carla17:11
DanChapmandpm yes it's pulling in from lp:dekko which is trunk217:12
DanChapmanok will do that17:12
DanChapmanthanks17:12
t1mppopey, pmcgowan: with which app(s) could you reproduce https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1524901 ? I can only reproduce it with music-app17:12
dpmyeah, I saw that too. Not sure why the string does not appear in the search17:12
ubot5Launchpad bug 1524901 in ubuntu-ui-toolkit (Ubuntu) "When an application starts there is temporarily a white gap at the top" [High,In progress]17:12
dpmperhaps I did something wrong, will double-check17:12
=== pat_ is now known as Guest30437
dpmDanChapman, false alarm, not sure why I didn't get it the first time, but now "identity" returns results to translate. Sorry for the noise17:13
DanChapmandpm, phew! :-D17:14
dpmall good :)17:15
Elleopmcgowan: yeah, I think the problem is that we offer this option to only auto-download updates on wifi which is selected by default, but they way it's implemented isn't great; as it creates the download regardless but sets the "allowOverGSM" property to false, so as far as system settings is concerned its being download because the download exists so it just shows an empty progress bar and no manual "download" button, but UDM just keeps it in 17:16
Elleopmcgowan: err, until it gets a wifi connection*17:17
pmcgowanElleo, sorry disconected and missed messages17:17
pmcgowanElleo, I think I created a bug for this at some point, if I hit the download button it should do it17:18
Elleopmcgowan: http://pastebin.ubuntu.com/14689399/ <-- those were the only messages I sent17:18
Elleopmcgowan: yeah, I think that needs sorting in system settings then, to change the allowOverGSM property to false17:19
pmcgowanElleo, can you enter a bug for that, I think it may explain some existing things17:19
Elleopmcgowan: sure, will stick my phone on GSM only and flash to an earlier image so I can verify the exact order of things first17:20
pmcgowanElleo, what does autodownlad never set it to ?17:20
pmcgowanI think that also sets gsm false17:20
Elleopmcgowan: I would assume it then never creates the download17:20
pmcgowanwhich is just wrong17:20
pmcgowanif I manually hit download on gsm it should do it17:20
Elleopmcgowan: until the user manually asks for it17:20
pmcgowanI always have auto never and I hit a lot of those symptoms17:21
Elleopmcgowan: yeah, not exactly sure what system settings is doing at the moment, will try to have a poke into it more tomorrow and see what it's setting/when17:21
pmcgowanElleo, thanks17:21
Elleokenvandine: were you planning on rewriting the system settings update stuff now that the new UDM features have landed? I seem to remember you mentioning that it was rather complicated at the moment and you wanted to simplify things?17:23
Elleokenvandine: if so, perhaps I could help out with that a bit whilst trying to get to the bottom of this17:23
kenvandineElleo, it's something i want to do18:08
kenvandineElleo, pmcgowan: the auto download setting is only for system updates, not app updates18:11
kenvandinewe never auto download app  updates18:11
pmcgowanright18:11
kenvandineand for system updates, we don't directly talk to udm18:11
pmcgowanI would like to detect app updates in the background too18:11
kenvandinewe tell system-image-dbus18:11
kenvandinein fact, we don't even tell it to auto download, s-i-d just does it18:12
kenvandineand we get the status18:12
kenvandinepmcgowan, that would be nice18:12
kenvandineso allowOverGSM is a udm property?18:12
dpmDanChapman, is there a way to show the filtered inbox for a gmail account in dekko? That is, I can see all messages in the default "All messages" view, but I only want to see those which are delivered to my inbox directly18:15
dpmi.e. not those which are filtered out to another imap folder18:16
DanChapmandpm yes just select Inbox in the folder list view. Or you can access it by selecting the items above the "Accounts" divider in the navigation drawer. The default view when opening dekko is in fact your Inbox18:19
dpmDanChapman, yes, but neither the default inbox nor navigating to choose "inbox" seems to show me a filtered inbox. On the web browser I see some e-mails tagged as "translations" which I generally don't see in the inbox, but I see them in dekko18:22
* dpm checks gmail filter settings18:22
dpmI'm talking about imap folders, rather than gmail's tabs (which I guess they are not IMAP standard and not supported?)18:23
* dpm is confused between gmail's tags, filters and folders18:26
DanChapmanAhh yeah gmail labels. This is a bit confusing, so gmail doesn't have the concept of folders it's just one big folder and they use labels to categorize/filter Inbox/Junk/Important and so on. When accessing that over imap they turn each label into it's own folder so you can end up with multiple copies of the same message depending on what labels are set on the original message. There is a custom extension X-GM-LABELS you can use to get 18:30
DanChapmanlabels for a message but it's non-standard thing18:30
=== rickspencer3_ is now known as rickspencer3
dpmDanChapman, ah, then I'm guessing those e-mails are tagged both 'inbox' and 'translations', thus they appear as duplicates in dekko or any generic e-mail client and that's why they appear in my inbox too18:48
=== marcoceppi is now known as marcoceppi|airpl
dpmDanChapman, http://webapps.stackexchange.com/questions/59101/automatically-remove-inbox-label-from-messages-with-other-labels18:50
* dpm updates his filters18:50
DanChapmandpm. yes and if you delete the one from Inbox it will still remain in 'translations'. The only place to delete them all at once is by removing it in [Gmail]/All Mail.18:51
DanChapmanahh cool i didn't know you could do that18:51
dpmDanChapman, yeah, just found out that removing the 'inbox' tag or pressing the Archive button are essentially the same thing in the gmail web client18:58
DanChapmandpm cool! :-) just found this https://support.google.com/mail/answer/77657?hl=en shows how imap actions apply to gmail19:00
dpmah, cool19:01
dpmDanChapman, in the future, have you thought about adding additional features specific to a type of account? I know it goes beyond being a generic IMAP client, but given the popularity of gmail, having extra actions such as "Archive" if the account is detected to be a Google one, could be quite useful to a lot of users19:03
=== marcoceppi|airpl is now known as marcoc|airplane
DanChapmandpm I have though about it a bit. The difficulty is with gmail to archive you just remove labels so running "Delete" on a message in inbox archives it. So i thought maybe switch the icons for an archive one19:09
DanChapmanBut then I noticed in gmail settings you can change this behaviour to be more imap like and just apply a deleted flag and leave the labels alone. but there is no way  to detect what behaviour the user has chosen so there's the chance the icons would be wrong19:09
dpmDanChapman, oh, so that already works? If I delete a message in dekko's inbox for a gmail account then it just gets the 'inbox' label deleted?19:10
DanChapmandpm yep it just removes the inbox label but leaves the message in All Mail (aka Archive) alone19:11
dpmah, cool. I wonder how they solve the problem about detection of archive behaviour in the gmail android client19:12
mrqtrosHi all19:20
mrqtrosCan anyone tell where I can ask few questions about scops? Seems that I've found a bug19:21
DanChapmandpm not sure how they do that. But i think going forward we could definitely make some changes for gmail accounts that focus more on the "default" gmail behaviour and be a little less imap specific19:21
dpmDanChapman, indeed. Another option, now specifically to the "Archive" question, could be to have a setting to let the user decide whether the Delete action should be renamed to Archive (and the icon updated accordingly). I think that would be safe in the sense that it's in the hands of the user to make that explicit choice, and it would also be less scary to archive :)19:27
mrqtrosdpm hello, if you have a moment - can you please tell me who can I ask about scope development?19:35
dpmhi mrqtros, perhaps alecu19:35
mrqtrosdpm thanks David ;)19:37
mrqtrosalecu ping!19:37
mrqtrosalecu can you please take a look at this peace of code? http://paste.ofcode.org/eUhmFr94chW4HgwYX8kfFh19:37
mrqtrosalecu I am almost sure that I am doing it right, but it dosn't work19:37
dpmnp :)19:38
alecuhi mrqtros!19:52
aleculooking19:52
alecumrqtros: how does it end up looking?19:53
alecumrqtros: and what were you expecting to see?19:53
mrqtrosalecu it is looking like empty UbuntuShape19:56
mrqtrosalecu I am expecting video preview19:56
mrqtrosalecu it works well when I am using local URL of video19:56
alecumrqtros: ok. And it doesn't look right when using some remote url?19:58
alecumrqtros: are you using youtube urls there, or from some other service?20:02
mrqtrosalecu it doesn't. Yes, I am using youtube urls (and they are valid, tried few of them)20:03
mrqtrosalecu it worked well before?20:03
alecumrqtros: https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04.1/previewwidgets/#video20:05
alecumrqtros: I suggest you try setting the "screenshot" attribute there20:05
mrqtrosalecu what URL should I use for screenshot?20:05
alecumrqtros: I don't think unity8 would download the whole video just to get a screenshot, it should only work automatically for local files20:06
alecumrqtros: if you are using youtube videos, then you should use some of the youtube screenshot urls20:06
alecumrqtros: try something like: http://www.youtubescreenshot.com/20:07
alecuso, in your example code, seems you should use a url like: http://img.youtube.com/vi/bFmMT2ZDQ8M/1.jpg20:10
mrqtrosalecu works! :)20:11
mrqtrosalecu someone should change documentation20:11
alecuawesome!20:11
alecumrqtros: easier done than said!20:13
alecumrqtros: if you want to fix it yourself, please create a MP proposal, with a change of this file: http://bazaar.launchpad.net/~unity-team/unity-scopes-api/trunk/view/head:/src/scopes/PreviewWidget.cpp#L13420:13
alecumrqtros: otherwise, please open a new bug here: https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+filebug20:14
mrqtrosalecu thanks, I copied both urls, will take a look20:38
=== salem_ is now known as _salem
popeyballoons, you around tomorrow? I'd like us to finally figure out what to do with all these failing AP tests.21:12
balloonspopey, yes. Finally on the up and up21:13
mrqtrosalecu are you still here? :)21:18
alecumrqtros: close enough?21:28
mrqtrosalecu is there any way to store custom data (for example json objects\string) across queries\scope usage?21:31
mrqtrosalecu something like LocalStorage or U1DB. If so, is there an example?21:31
alecumrqtros: scopes can access the same folders as any click app, so using something like u1db sounds feasible21:34
alecumrqtros: don't have sample code right now, sorry21:34
alecumrqtros: BTW, keep in mind that scopes are supposed to be stateless, since they can be killed between queries (usually due to timeout)21:36
mrqtrosalecu just for information - are you scope "sdk" (or kit, I hope you understand me) developer?21:37
alecuBut using a db sounds ok21:37
alecumrqtros: yes, I work for Canonical on that team21:37
mrqtrosalecu what if I want to add some "Favourite" content? Provide quicker access to some results? Is it sounds normally for you?21:38
alecumrqtros: not sure I understand. Can you give me some concrete example of how that would work?21:41
alecumrqtros: would that be the empty search?21:41
alecuOr a department?21:42
mrqtrosalecu for example I want to implement scope for some online store. First time I get some results (with query string or without) and mark some of entries as favourite. Next time I will see these goods in "Favourite" section21:42
mrqtrosAs well as "normal" results21:43
mrqtrosSomething similar to shopping cart (just a dummy example for your inderstanding. I do not want to implement shopping cart in scope =) )21:44
davidcallemrqtros: you can try to use: std::string unity::scopes::ScopeBase::cache_directory21:47
davidcallemrqtros: it returns a directory the scope can write to21:47
mrqtrosdavidcalle seems that will be helpful, thanks!21:51
davidcallemrqtros: and I've found a scope that uses it to store online query data http://bazaar.launchpad.net/~timeout-scope-team/timeout-scope/timeout/view/head:/src/TimeOut-scope.cpp (see line 25 to get the cache) and search for "cache" on http://bazaar.launchpad.net/~timeout-scope-team/timeout-scope/timeout/view/head:/src/TimeOut-client.cpp to see how this one is22:03
davidcalleusing it22:03
ahoneybunhey I don't see to have my arm kit for my current project, how do I add it?23:06
ahoneybunI have it built and updated23:06
* ahoneybun cries at all these deprecated errors...23:08
ahoneybunis Ubuntu Components 1.3 official now?23:09
elimisteveThank you davidcalle and bzoltan_ re: scope dev in Ubuntu 14.04; I'm using 15.10 and it's working just fine :-). One issue though --23:21
elimisteveI've now compiled my Go scope on an ARM machine (thanks to Scaleway) but something's not quite right; I get this error:23:22
elimisteveerror while loading shared libraries: libunity-scopes.so.1.0: cannot open shared object file: No such file or directory23:22
ahoneybunmhall119, ping23:23
elimisteveIt seems to be looking in the wrong place for that .so file, which I see on my Ubuntu Phone (Nexus 4) at /usr/lib/arm-linux-gnueabihf/libunity-scopes.so.1.0.223:23
elimisteveAny idea if I need to create LIBRARY_PATH or LD_LIBRARY_PATH somewhere? I'll keep looking; I think that's the issue23:26

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