libera/#maemo-leste/ Saturday, 2024-03-09

sicelo /win 2514:17
Wizzupok, new conversations will have grouped messagesso the notifications will stack per person15:56
Wizzuphttps://wizzup.org/lockscreen.png :)16:54
Wizzup(oh, still copying, airplane wifi.)16:55
Wizzupneeds some hildon-home fixes though16:57
sicelowe're using modified lock screen? :-)16:58
Wizzupsicelo: hm?17:03
Wizzupno17:03
Wizzupjust hildon-home claims to accept boolean for persistent hint but it errors later on17:03
Wizzupso that needs fixing17:04
freemangordonhmm, it should17:16
Wizzupyeah I fixed it already17:17
Wizzupjust saying that's all I changed17:17
Wizzupbut now the notifications do not go away17:17
Wizzupand I just found outmodest does this and it made me laugh17:18
Wizzupout how modest*17:18
freemangordonhmm?17:21
Wizzup(plane wifi, slow to send)17:25
Wizzuphttps://github.com/maemo-leste/modest/blob/master/src/hildon2/modest-platform.c#L175017:26
Wizzupuvos: btw I checked and for the icons ot appear on the lock screen from sphone you'll just have to set some properties17:33
Wizzupno hildon-home changes or special handleing needed17:33
Wizzupafaict at least17:34
Wizzupyou just need notify_notification_set_hint_byte and set "persistent" to TRUE17:34
Wizzupand then make sure that you close the notification17:34
Wizzupthe sounds are correct :)17:43
Wizzup(in conversations, for sms and chat)17:43
Wizzupdidn't have to play naything myself17:43
WizzupI think this should handle vibration too17:45
Wizzupfreemangordon: I don't remember and am in offline mode, if you get several smses from different people, do they get different notiication groups/windows?17:48
Wizzup(one per constant)17:48
Wizzupone per contact*17:48
uvosWizzup: yeah because you are called "conversations"17:48
uvosits hardcoded per endpoint name17:48
uvoswhich is increably stupid17:49
Wizzupno17:49
Wizzupthis config file does not matter I am pretty sure17:49
Wizzupwhich list are you talking about?17:49
Wizzup/etc/hildon-desktop/notification-groups.conf ?17:49
Wizzupkeep in mind that conversations is not the actual name in fremantle17:50
Wizzupit's rtcom-message-ui or something17:50
WizzupI have another 7 hours to wait, so I might look at it is there is anther hardcoded list17:51
uvosyes its notification-groups17:51
uvosto get that behavior you need to be the dbus destination it hardcodes17:51
Wizzupok so I mucked around with this and restarted hidon-home nad it makes no difference17:51
Wizzupthe word conversations does not appear in it either17:52
Wizzupmaybe there is something I am missing17:52
uvostelepathy dose17:52
WizzupI think what you should do in sphone is17:52
uvosits impossible for sphone17:52
uvosbecause sphone has no dbus interface like that17:52
Wizzupin notify-libnotify.c17:52
Wizzupchange im.received to sms-message17:53
Wizzupand then it will make sound nad probably also vibrate17:53
Wizzupthat is my guess at least17:53
uvosno it will break everything17:53
Wizzupok, well this works in conversations17:53
uvosbecause h-h is then hardcoded to ask telepathy about the notifcation17:53
Wizzupthere is no 'NotificationUI' client17:54
WizzupI mean I'm happy to leave it at this but it seems to me like it should just work17:54
uvosthen your setup is also broken17:54
Wizzuphaving looked at the hildon-home code17:54
uvosit works like this: h-h saves the notification17:54
Wizzupbroken how? it works exactly like on fremantle17:54
uvosand restores it when its restarted17:54
Wizzupif you set persistent17:54
Wizzupyes17:54
uvoswhen the user clicks on it h-h will ask the dbus inteface (that is hardcoded) to handle the notification17:55
uvoswhich is broken17:55
Wizzupdid you try this and run into this problem?17:55
uvosyes17:55
Wizzupweird, I don't have this problem17:55
Wizzupthe window opens correctly17:55
uvosthe interface is stupid17:55
uvosit should just use extended proparties for this17:56
Wizzup'this' ?17:56
uvosall of the stuff in notification-groups.conf should be extenden props passed with the notification17:56
uvosyes the window opens correctly as long as you are clicking on the original notification17:56
uvosas soon as its restored its broken17:57
Wizzupand when you mean restarted, you mean when hildon home restarts17:58
uvosyes17:58
Wizzupwhen you mean restored*17:58
Wizzupok, so this is regardless of stateful notifications?17:58
uvosyes17:58
uvosnever mind that this whole steup prevents other applictions17:58
uvoslike pidign or whatever from having grouped messages or vibration or a pattern17:59
uvosand so on17:59
WizzupI am not sure how much of a practical problem this is since hildon-home doesn't often restart and a broken notification isn't the end of the world but yeah robably worth fixing17:59
Wizzupyou can just request grouped messages17:59
Wizzup    notification->setHintString("group", "_grouped_messages");17:59
uvosthis dident work at all last time i tried17:59
uvoswell wen i first implemented it in sphone it was compealty broken18:00
Wizzupit workeed for me, but it groups everything together, regardless of who the message came from, so I need to figure out how to grouping works18:00
uvosfmg did fix several things18:00
Wizzupso how would persistent notifications work?18:01
Wizzupyou still need a way to invoke/clear them18:01
uvosnotifications are only presistent over resart if application provides x-maemo-dbus-interface or whatever as hint18:02
uvosthe string of the hint is taken as the endpoint18:02
Wizzupso there's perhaps different persistence here18:02
uvossame as virbation, sound, lights18:02
WizzupI am talking about reboot-level persistence18:02
uvosyes exactly18:02
uvosthats what i ment18:02
uvosh-h stores a endpoint that the application provides18:03
Wizzupif you set the persistent hint to '1'18:03
uvosand tries that to handle the notification after a restart18:03
uvoswhere the dbus endpoint id is lost18:03
Wizzupthen it will end up in ~/.config/hildon/desktop/notifications.db18:03
Wizzupwhich are rendered btoh on the lock sreen and I assume on reboot18:03
uvosyes and even though presitance is a xdg prop those are broken for any application not hardcoded here18:04
Wizzupin the sense that there is no way to clear them18:04
uvosi think you can x out of them, but they are unhandled18:04
Wizzupif I 'x' them they remain in hte db18:06
Wizzupbut that could be because conversations doesnt call close() on them properly18:06
uvosclosing any notification is broken18:07
uvosevery notificcation leaks memory18:07
Wizzup?18:07
uvoshttps://github.com/maemo-leste/bugtracker/issues/63918:08
uvosx just closes the window18:08
uvosit never tells anyone anything about this18:08
uvosso every app that uses notifications leaks memory18:08
Wizzupseems like it's worth fixing18:09
WizzupI just checked and I don't think they actually clear from the db18:11
Wizzup(after a reboot and pressing x again)18:11
uvospresumably because h-h assumes that something is going to handle its dbus call18:12
uvosbut this dosent happen18:12
Wizzupright18:12
uvoswhich is just broken in gerneal because persitant notifications are issued by non-maemo applications all the time18:12
Wizzupit doesn't seem like this would be too hard to fix18:14
freemangordonWizzup: uvos has a point here, like, after restart persistent notifications will lead to notification window (yellow) being shown19:28
freemangordonbut when you click on it, if there is no dbus interface assigned, nothing will hgappen19:28
freemangordonand dbus interfaces are hard-coded, which is API deficiency19:29
freemangordonwe discussed how to fix that, but I am yet to do it19:29
Wizzupok, we did discuss how to fix it?19:32
Wizzupok19:32
Wizzupwell count me as an interested party19:32
WizzupI will make a pr for the hildon-home fxes I made earlier today19:32
Wizzupand yeah for the record I was not disputing uvos' point19:33
WizzupI just found that some things work better than I expected wregardless of this hardcoded list19:33
Wizzupfreemangordon: https://github.com/maemo-leste/hildon-home/pull/322:55
Wizzupfreemangordon: oh libhildondesktop has similar code for persistence23:03
Wizzupand it only takes uchar23:03
Wizzupthis is why my notifications do not get deleted23:03
WizzupI'll see if I can get uchar from qt23:03
Wizzupuchar set from qt*23:04

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