libera/#maemo-leste/ Sunday, 2021-08-29

konaTrojita has a few issues for me on pinephone, notably adding an account won't accept input00:03
konaWill look at it00:03
Wizzupkona: hmm00:58
Wizzupkona: focussing on modest is good00:58
WizzupI am not sure if trojita is fully hildonized00:58
konaWizzup I will start with modest and see what's what01:21
Wizzupkona: cool, lmk if you have questions / need help01:37
konaLibcal builds, so my build vm probably works :)08:06
Wizzupkona: yes09:44
freemangordonkona: why do you build libcal, -dev it should be in the repos?09:56
freemangordonalso, modest will need osso-abook (WIP) and HTML renderer replacement09:57
freemangordonI am working at osso-abook as we speak, so can prioritize whatever modest needs. It may already be there though09:58
Wizzupfreemangordon: he's working on modest, so I think libcal is just a way to test the build vm09:59
freemangordonthought so, just wanted to be sure09:59
konafreemangordon: yes, just testing18:10
freemangordonkona: ok. Did you see my note re osso-abook?19:46
konaYes, will try to figure out what I need, sorting out a missing build dep on my vm presently19:46
freemangordonhmm, thre shouldn;t be any but a dependency to microb-dev (or something like that)19:47
freemangordonbut, you'll need to build tinymail IIRC19:47
konaIt might be because I cloned only modest instead of the whole leste repo?19:48
uvosfreemangordon: so i have been looking at abook /lib19:48
freemangordonyou don;t need the whole leste repo :)19:48
konaSome gtk doc dependency breaking autoconf19:49
freemangordonkona: however, I am not sure timymail is int ther repo19:49
freemangordon*tinymail19:49
freemangordonuvos: and?19:49
uvosfreemangordon: im not sure i understand it quite yet, but is it correct so say that other apps shal use this to for instance show the avatar by creating a gtk widget of the type OssoABookAvatar?19:50
uvosand so on19:50
uvosfor abook functionality19:50
freemangordonuvos: not really, all this is alreay there19:50
uvosok but if i want to use abook19:50
uvosin some other app19:50
freemangordonyou need only OssoAbookAccountSelector19:50
uvoshow would i aquire the information19:50
uvosbut i need the avatar19:50
freemangordonit is there19:50
freemangordonjust a second19:50
freemangordonuvos: you need an avatar of a particular account, no?19:51
freemangordonso, how do you know which account you need avatar of?19:51
freemangordonyou need that for sphone, correct?19:52
uvosfreemangordon: yes im trying to figure out how "bad" it would be to have optional abook support in sphone19:52
uvosyeah so i have some number, i can look up what account i need via evolution (or abook but havent foudnd if it can yet)19:52
freemangordonsec19:52
uvosand then i need presence and the avatar and sutch19:52
freemangordonno, you don;t need evolution19:52
freemangordonall you need is abook, the functinality is already there19:53
freemangordon  p, li { white-space: pre-wrap; }  osso_abook_contact_get_photo19:53
freemangordonosso_abook_contact_get_photo()19:53
uvoshmm ok19:54
uvosand looking up a account from the number19:54
freemangordonactually it is '19:55
konaFreemangordon: tiny mail in 0mark repo19:55
freemangordoncontact' not 'account'19:55
uvossure19:55
uvosOssoABookContact19:55
freemangordonuvos: gimme a second to fint the functions you need to call19:55
freemangordon*find19:55
freemangordonkona: sorry, can;t parse, please rephrase19:55
freemangordonuvos:   I think it is osso_abook_aggregator_find_contacts_for_phone_number()19:56
freemangordonmaybe I shall feed ida with callui and see what functions it uses19:57
uvosah ok that looks like it would work19:57
uvosok so there is something i really dont like about abook. it, correct me if im wrong, but its apears to be mixing frontend and backend. There seams no reason to have the thing that provides presence and19:57
konaFreemangordon: I'm planning to work with tinymail from  repo:https://github.com/0mark/tinymail19:57
uvosaccount info and sutch depend and link to a gui toolkit19:57
freemangordonkona: why not use tinymail from CSSU?19:58
konaCssu?19:58
freemangordonuvos: actually, it is the GUI toolkit19:58
uvosfreemangordon: sure but there should be something below it19:58
freemangordonnot a backend19:58
uvosthat provides the account info presence and sutch19:58
freemangordonyes, telepathy and EDS19:58
uvosokay19:58
freemangordontelepathy provides presence19:58
uvoshmm19:59
freemangordonEDS - addressbooks19:59
uvosso maybe it would make more sense for me to avoid using abook and just geting the info from there...19:59
freemangordonif you look at OssoAbookContact it is based on EContact19:59
uvossince then i can also port sphone to gtk319:59
freemangordonuvos: and you have to write all from scratch19:59
uvosalso how are qt apps supposed to work19:59
freemangordonup to you ofc19:59
freemangordonhow's that related/20:00
uvoslike trojita20:00
freemangordon?20:00
uvosi also maintain that20:00
uvoswell a qt app on maemo will have the same problem20:00
freemangordondon;t know, we have to look in some fremantle example20:00
freemangordonkona: sec20:00
freemangordonuvos: :nod:20:00
freemangordonit is a general issue20:00
konaK20:00
uvosmaybe we should create (or exists) some thin wrapper20:00
uvoslibmaemocontacts20:00
uvosor whatever that gives pixmaps and info in one place20:01
freemangordonkona: https://github.com/community-ssu/tinymail20:01
konaTy!20:01
freemangordonuvos: that does what?20:01
uvosjust aggregates what abook gets from tp and from eds20:01
freemangordonbut it is already aggregated20:01
uvosin abook20:02
freemangordonah, you mean to rewrite abook?20:02
uvosno20:02
uvosnot the gui part20:02
uvosjust aggreate in a gui toolkit netural way20:02
freemangordonOssoAbookContact doesn't have GUI parts20:02
uvosyeah but it deppends on gtk220:02
freemangordonso maybe we can split GUI from TP/EDS20:02
uvosyeah20:03
uvosthats what i was thinking20:03
uvosthen we can make the backend lib something you can use elsewhere too20:03
freemangordonbut, I am not going into this before abook is complete20:04
uvossince ofc hildoized gtk2 will be maemo specific forever20:04
freemangordonotherwise that's a wise move20:04
uvossure20:04
freemangordonyeah, should be possible to split20:04
uvosgreat20:04
uvosok finishing re first makes sense20:05
freemangordonbut, you;ll be missing stuff like contact selector20:05
uvosok20:05
freemangordonwhich does lot more that may look initially20:05
freemangordonbecause you have voicemail cointacts, for example20:05
uvosmaybe we can spinn it into a seperate process for qt / gtk3 whatever apps20:06
freemangordonor 'me' contact20:06
uvos(thinking qt maemo apps here)20:06
freemangordonyes, I think this is wiser20:06
uvosok20:06
freemangordonbut maybe this is already implememted bu the addressbook application20:06
freemangordon*implemented by20:06
freemangordonwhich is in early REing stages20:07
uvosokay20:07
uvoscarry on then20:07
freemangordonafter the lib :(20:07
freemangordonuvos: I think maybe a better approach is to start with abook and implement something different after you are aware of all the requirements20:08
freemangordonwhat about the call history?20:08
freemangordonalready said about the contact selector20:09
freemangordonit is not really trivial to implement one20:09
uvossphone dose its own call history in sql rn, not sure how to integrate it20:09
uvosmaybe we can have it infrom tp somehow20:09
freemangordonwell, you can;t keep call history out of contact history20:10
freemangordonand contact history is in RtCom20:10
freemangordonby contact history I mean - calls, chats, SMSes, etc20:10
uvosofono allso keeps its own history20:10
freemangordonit will become inconsistent otherwise20:10
uvosatm20:10
uvosso theres mutliple layers here allready doing the same stuff20:11
freemangordonsure, but this is not what you expect from a phone20:11
uvosnot sure how to do it best20:11
uvossure20:11
freemangordonuvos: I would say that's why Nokia integrated everything in one place20:11
uvossure so we need something in the telephone stack inform that one place about calls/sms20:11
freemangordonmaybe a better approach would be to de-hildonize osso-abook20:11
uvosim thinking about where20:12
freemangordonor rather - to have GUI parts in plain GTK/QT or whatever20:12
freemangordonbut this is a huge amount of work20:12
freemangordonalso, do you plan sphone to support dial over TP? like doing gtalk voice calls?20:14
uvosyeah i want to make the backend in sphone a plugin20:16
uvosso then you could have tp as one20:16
uvosbut thats going to be a rather late addition20:16
uvossince it needs some kind of contacts and fully working calls (audio routing) first20:17
freemangordonok, but what are you going to provide to the backend? EContact?20:17
uvosa string with what to dial20:18
uvosor what do you mean?20:18
freemangordonyes, that20:18
freemangordonbut, how a string is going to describe a contact?20:18
freemangordonsome internal format?20:18
uvoshavent thought quite that far yet so at first ill just make a plugin of the ofono backend20:19
freemangordonjust an idea - either use EContact or plain vcf20:19
uvosthat just gets a string with the number rn20:19
uvosok yeah something like that makes sense20:19
freemangordoneveryone shall be able to understand vcf20:19
freemangordonif you want to avoid EDS dependency20:19
freemangordonvcf carries the avatar as well20:20
freemangordonBTW, that shall work with abook too20:20
uvosok20:21
freemangordonabook can understand vcf I guess20:21
uvosok20:21
uvosyeah vcf makes sense20:21
uvosbut near term sphone will stay ofono so this is for later20:21
freemangordonI would still prefer full abook integration ofc :P20:21
freemangordonWhich I am going to implement soon or later20:22
freemangordonhave you ever seen fremantle dialer?20:22
uvosyeah20:22
freemangordonok20:22
Wizzupfreemangordon: tinymail from cssu is too old for using the gtk html thing, it needs to be newer, see the notes from the same person @21:47
Wizzuphttps://github.com/0mark/modest4leste21:49
Wizzupfreemangordon: did you see https://github.com/maemo-leste/connui-common/pull/1 and https://github.com/maemo-leste/connui-internet/pull/321:49
freemangordonoh, https://github.com/0mark/tinymail/commits/master is already based on CSSU21:50
freemangordonok, my bad for not checking it first21:52
freemangordonWizzup: just had a look at it, seems fine (functionality wise) but usual notes by my side apply (coding style, #defines :p )21:54
Wizzupthe original code also doesn't do defines for the paths21:55
WizzupI thought I mostly kept the same code standard there21:55
freemangordondoesn't it? ok, maybe an oversignt by me, but it has to be fixed anyways21:56
WizzupI am also not sure where we want to define it too21:56
freemangordonI mean "/system/osso/connectivity/srv_provider"21:56
freemangordonnot the subdirs/icon names21:56
Wizzupyeah, should that go in icd2-dev or something?21:56
freemangordonI think it is already there, lemme find it21:57
uvostinymail would likely benefit a lot by porting to gtk321:57
freemangordon#define ICD_GCONF_SETTINGS              "/system/osso/connectivity"21:57
uvoswrt more up to date bindings to html renderers21:57
* Wizzup would rather have minimal html renderers to start with21:57
Wizzupfreemangordon: just for that part? I see21:58
uvosis webkitgtk for gtk2 still updated at all21:58
uvosit appears arch at least dropped it in 201721:58
Wizzupdebian oldstable should I suppose21:58
freemangordon#define ICD_GCONF_SRV_PROVIDERS         ICD_GCONF_SETTINGS "/srv_provider"21:58
Wizzupfreemangordon: ok, yeah, that wasn't used in that file21:59
konaFreemangordon, should I join cssu project?21:59
uvosWizzup: yeah @ minimal html, i think the internal extreamly limited html5 renderer of qt5 seams pretty ideal for a mail client21:59
freemangordonWizzup: see, basically I try to do my best to make the code 'beautiful' while REing, but sometimes I miss stuff. If you see I didn;t use defines on some places, please fix, it was not intentional22:00
freemangordonkona: no22:00
Wizzupuvos: I'd still like to get modest ported by just upgrading to newer libs if they exist, and then look at potential upgrades, it's quite low resource and nice, even on fremantle still22:00
Wizzupbut yeah, qt5 could work22:01
Wizzupkona: maemo-leste basically replaces cssu22:01
freemangordonthe repo you linked initially is already already based on cssu22:01
konaOh, I see. Yeah, will continue w 0mark repo then22:01
konaOk.22:01
uvosyou can allmost run trojita with the hildon qt platform btw22:01
freemangordonalready already to be read as already :)22:01
uvosyou would just have to hide some menu elements22:01
uvosill do that eventually22:01
uvos(ofc no trojta is very mucht a stand alone email client)22:02
freemangordonuvos: and it doesn;t integrate with osso-abook ::22:02
freemangordon:)22:02
uvosyes22:02
Wizzupfreemangordon: I'll fix it here22:02
uvosadding some abooks support would be conignant on untagling the gtk2 depenacy of that again22:02
freemangordonWizzup: well, feel free to grep for other places :p, maybe in a separate commit?22:03
freemangordonuvos: sure, but we already have an email client which integrates with abook22:03
freemangordonas you said - diversity :p22:03
lelMerlijnWajer synchronize a pull request: https://github.com/maemo-leste/connui-common/pull/1 (iap-common: add default_custom_ui provider parsing)22:03
uvosright realistcly it would need porting to gtk3 for security wrt its html renderer22:04
uvosso it has the same problem22:04
Wizzupfreemangordon: thanks for the review, will fix that up now22:08
freemangordonWizzup: maybe I shall provide you with uncrustify config22:08
lelMerlijnWajer synchronize a pull request: https://github.com/maemo-leste/connui-common/pull/1 (iap-common: add default_custom_ui provider parsing)22:08
freemangordonit will be easier, gimme a minute22:08
freemangordonWizzup: https://pastebin.com/jQpXr1sN22:14
freemangordonthe only thing I was not able to setup correctly is the line continuation22:14
freemangordonqtcreator uses 2 * indent to align the first continuation line where splitting assignment and function parameters22:15
freemangordons/where/when22:16
freemangordonWizzup: oh, what I pasted is cfg file for uncrustify22:16
freemangordonthat matches the coding style I use in all projects I started recently22:16
freemangordonwell, ~matches (line continuation is not matched)22:17
Wizzupif this config works well, maybe we should have them in a repo somewhere, or on the wiki22:17
Wizzup(+ what to use per repo, I guess)22:18
freemangordonit works, besides the note22:18
freemangordonI was not able to find a way to fix it22:18
freemangordonBTW, how did you manage to do it correctly here https://github.com/maemo-leste/connui-common/pull/1/commits/2b8345dfd1a1359b97cf5857c7859c553eb5db5d#diff-29b482d64fa71326355151232c6b808e8b9009711de15fb6d5773ebd5a4125e4R548? by hand?22:19
Wizzupyes I fixed things by hand some minutes ago22:20
freemangordonok, this line is an example of some weird, hardcoded QtCreator behaviour, it puts basically 3*indent spaces when continuing on the next line22:21
freemangordonI am not sure how to deal with that re auto indent22:22
Wizzupwe could also just accept uncrustify behaviour in it perhaps22:22
* Wizzup going to get some sleep soon, intense day22:23
freemangordonme too22:25
freemangordonyeah, maybe22:25
Wizzupparazyd: btw, maybe if you have some time tomorrow you can think about some debhelper or re-usable postinst scripts to insert libicd_network_tor.so (or others) in the gconf string list for the network types22:26
freemangordonWizzup: shall I merge the PR?22:26
Wizzupparazyd: and upon removal remove it from the list22:26
Wizzupfreemangordon: should be good yeah22:26
freemangordonping me when you at it (dh_ sthingie)22:26
freemangordon*thingie22:27
lelfreemangordon closed a pull request: https://github.com/maemo-leste/connui-common/pull/1 (iap-common: add default_custom_ui provider parsing)22:27
uvosif you can right now the hildon pr would be usefull to also close22:43
freemangordonuvos: will do tomorrow, I promise23:10

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!