libera/#maemo-leste/ Monday, 2022-08-22

uvosfreemangordon: i agree that the spec saies to remove the entire block shal be removed00:14
uvosbut i also agree with sicelo that removeing just the tags is probubly more usefull in practice00:14
uvos*freemangordon: i agree that the spec saies to remove the entire block00:15
WizzupI'm not sure if we want to do any parsing if we can avoid it00:31
freemangordonWizzup: we can't avoid07:01
freemangordonsicelo: while I agree to some extend, how useful would be to display a link that cannot be clicked?07:16
siceloyes, i didn't finish writing another sentence to the effect that an unclickable link is somewhat confusing too. However, user intuition can help in that case, while it's totally absent when tag+text are gone08:23
freemangordonyeah, but specs say we shall remove it :(08:29
freemangordonit is confusing08:29
freemangordonsee https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#markup08:29
siceloi have just read that link. if i understand it correctly, it's saying to strip the tag (not the text)08:35
sicelo"The tags specified above mark up the content in a way that allows them to be stripped out on some implementations without impacting the actual content. "08:36
sicelowhat it's saying sounds exactly like in the example i gave above08:37
freemangordonok, unless someone objects I will implement it as you say08:38
siceloand yes, this means no parsing, unless i misunderstand. basically you find '<' ... skip everything until you reach '>'. done08:39
freemangordonno, I must parse08:39
freemangordonas I want to support <b> <i> etc08:39
freemangordonbut not <a> and <img>08:39
siceloah, ok :-)08:39
freemangordonit is not a biggie08:39
freemangordonI am using GMarkupParser, which is said to be lightweight parser08:40
siceloback to that sentence a bit: text is 'content', so the sentence indicates that content shall not be touched08:40
freemangordonok08:40
freemangordonI will display links as blue underlined text08:40
freemangordonsomeday we may even want to support click on that as well08:41
Wizzuplet's hope this doesn't introduce exploits throught notification :D10:25
freemangordonit shouldn't :)10:47
freemangordonhmm, it seems libnotify assumes that timeout 0 means persistent notification10:48
freemangordonbut h-h looks for 'persistent' hint10:49
freemangordonI wonder what 'persistent' with non-zero timeout would be10:50
uvos"<freemangordon> I wonder what 'persistent' with non-zero timeout would be"11:17
uvosmost notification servers have a global que11:18
uvosprobubly this means to show the notification for timeout and then put it into the (usually hidden untill the user clicks) que11:18
uvosbut ill test that theory on kde and lxqt in a sec11:18
freemangordonuvos: could be, but still, if this is persistent across reboots, I wonder how actions shall be implemented then11:20
freemangordonas those are dbus callbacks11:20
uvosnone of the notifications are presistant across reboots11:20
uvosor restarts of the server11:20
freemangordonhmm11:20
uvosas far as i can tell11:21
freemangordonwell, we support that :)11:21
uvoswell as you note11:21
uvosit cant really work11:21
freemangordoni can, as soon as there are no actions involved11:21
uvossure you can have grayed out notifications11:21
uvosor something11:22
freemangordonalso, for example conversations or call-ui can listen to dbus and activate themselves11:22
uvosclearly a uninteneded hack11:23
freemangordonTBH I cannot find a single user in fremantle that sets "persistent" property11:23
freemangordonok, so it seems we do not support persistence then (in terms of specs)11:24
Wizzupdoesn't seem like a big deal atm?11:24
freemangordonsure no11:24
freemangordonI am just trying to figure out what we support and what not11:24
freemangordonto properly report to clients11:25
uvosprobubly usefull for pressistance to exist11:25
uvosfor instance for a mute button11:26
WizzupI think for that we might want some notifications window or status applet11:26
Wizzupbut it doesn't seem quite essential now in any case ;)11:26
uvosas a global que yeah eventually11:26
freemangordonyeah, some status bar applet11:26
uvosi dont see how my gf could survive if every notification has its own window :P11:26
freemangordonno, it is not like that11:26
freemangordonh-h supports threadung and category11:27
freemangordonso notifications gets grouped11:27
freemangordondon;t ask me how, but the code is tehre11:27
uvosthe dekstop notification spec  if seams to create a new window for every call11:27
freemangordonno11:27
uvoshmm it dosent work then11:27
freemangordonwell, it depends on how you use that11:27
freemangordonyou should set the hints correctly11:28
uvoswhat hints?11:28
uvosare thes mameo specific11:28
* freemangordon checks11:28
uvosthe  dekstop apps that do work with the if atm11:28
uvosspamm lots of windows11:28
uvoslike if i download 10 podcasts via gpodder11:28
uvosill get 10 windows with the compleate notification11:28
uvosreally annoying11:28
freemangordonsee https://github.com/maemo-leste/hildon-home/blob/master/src/hd-incoming-events.c#L7411:29
freemangordonyou should figure out how this work though11:30
freemangordonmaybe tehre is documentation11:30
uvosthis dosent help tho11:30
uvossince no desktop app will ever set those11:30
freemangordonseems you are nto the only one :p11:31
freemangordonhttp://thpmaemo.blogspot.com/2010/08/desktop-notification-support-in-gpodder.html11:31
uvosso is hd_notification_get_category set via class specific prop on the dbus call?11:32
freemangordonbut, at least it seems possible :)11:32
freemangordonIIUC 'category' hint is another story11:32
uvosok11:32
uvoswell thats not really great then11:32
freemangordonthis is about grouping based on WM_CLASS of the application11:33
freemangordonlemme check how it is on fremantle11:33
uvoshow dose it do that?11:33
uvosquery on the pid?11:33
uvosto find x windows?11:33
freemangordonmaybe, I haven't looked at the code11:33
uvosdont see how else it could work11:34
uvosthat sounds... farily horrible11:34
freemangordonwell, tasknav already does that either ways11:34
freemangordonit already "adopts" X windows11:34
freemangordonso not really an issue11:34
uvossure its an issue, it breaks lots of things11:35
uvosxwindows of a "applicaiton" dont even have to be in the same pid11:35
uvosfor starters11:35
freemangordonno, because that's how application thumbnail is shown in tasknav11:35
uvosor set that pid11:35
uvos?11:35
freemangordondoes not matter, it is about the window class, not the PID11:36
uvosyeah but to get to the window class11:36
uvosyou need a xwindow11:36
freemangordonand you already have it11:36
uvosto get the window from the dbus call11:36
freemangordonin hildon-desktop11:36
freemangordonno,no11:36
uvosyou need to check what pid owns what window11:36
freemangordonyou don;t care about dus call11:36
freemangordonwhy do you care?11:36
uvoshow do you correlate the window with the notification (to get WM_CLASS)11:37
uvos?11:37
freemangordonanyway, lemme see what this file contains in fremantle11:37
uvosyou have to correlate the dbus call with a xwindow somehow11:37
freemangordondunno11:37
freemangordonlook at the code11:37
uvosright the only way to do so is via pid11:37
uvosand thats horrible11:37
freemangordonno, it seems it uses "category" from dbus call11:37
freemangordonand maps that category via the config file to know which WM_CLASS to use11:38
uvosok then thats fine11:38
freemangordonthat's what I saw from a quick glance11:38
uvosstill i dont think mutch sets this11:38
freemangordonwell...11:38
uvosill try some more stuff11:38
freemangordonsee   notification_get_group()11:39
freemangordonugh...11:40
freemangordonuvos: https://pastebin.com/4NLthG6h11:40
freemangordon:)11:40
freemangordonwhat is missing here is .d, but I guess we can easily add that11:42
uvosugh thats farily horrific no11:42
freemangordonno, why horrific?11:43
freemangordonit is fairly configurable and if we miss something... well11:43
freemangordonwe can add it11:43
uvos? a config file with destinations11:43
uvoshows that not horrific11:43
freemangordonwe can replace with mime type11:44
uvosit breaks pretty mutch everything11:44
freemangordonand xdg_open11:44
uvosthats still broken11:44
uvoswhat about actions?11:44
freemangordonthere is only "default" action. fullstop :)11:44
uvosxdg_open ing soemthing is not the same as triggering an action11:44
uvosdefault action and xdg_open are not the same11:45
freemangordonagree11:45
freemangordonbut, I don;t think "destination" is mandatory11:45
freemangordonso actions will still execute11:45
freemangordonwell, "default" action11:45
uvosits still terrible, your essentaly "hardcodeing" special behavior for some blessed apps11:46
freemangordonanyway, lemme push what I have done so far11:46
freemangordonuvos: https://github.com/maemo-leste/hildon-home/pull/211:50
uvoslooks ok11:59
uvosill test later today11:59
freemangordonhmm, lemme force-push fix for one possible memleak12:00
freemangordonuvos: done12:04
freemangordonthis https://github.com/maemo-leste/hildon-home/compare/76d57aeb1d88abfb3ffa180889e63be46196a9de..bf4916ebb52cfa8ed991ffb20c186bfdfad56a0412:05
Wizzupfreemangordon: ok with putting osso-addressbook in stable / meta pkg?12:46
freemangordonsure12:47
freemangordonit lacks some stuff, and has at least one issue (segfault I can no longer repro now gtalk does not work), but otherwise...12:47
Wizzupthere's the thing with telepathy-haze and slack where everyone is (no name)12:48
Wizzupbut I think that is for later :)12:48
freemangordonyeah13:00
mighty17[m]freemangordon: is `egl-dri2-Workaround-for-EGL_EXT_image_dma_buf_import.patch` still needed after https://github.com/maemo-leste-upstream-forks/mesa/commit/87c70d8e169d8034998f1859d11b2541ffceee3e14:08
freemangordonmighty17[m]: I guess no14:37
freemangordonbut, you'd better just use mesa from repos14:38
mighty17[m]yup there's no need for it14:59
mighty17[m]tested with phosh :D14:59
mighty17[m]freemangordon: we dont have EXT_read_format_bgra working right?15:51
freemangordonwhy is that?15:52
freemangordonwell, check with eglinfo15:52
mighty17[m]https://github.com/tmlind/wlroots/commit/04491889240bbadb693aa37036dc55835118b2cc15:52
freemangordonor es2_info15:52
mighty17[m]in a sec15:53
mighty17[m]freemangordon: nope, we do not15:56
freemangordonEXT_read_format_bgra is same as GL_IMG_read_format?15:57
mighty17[m]https://github.com/tmlind/wlroots/commit/04491889240bbadb693aa37036dc55835118b2cc acc to this, yes15:58
mighty17[m]<freemangordon> "well, check with eglinfo" <- `samsung-espresso3g:~$ DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 es2_info | grep -i GL_EXT_read_format_bgra`15:59
mighty17[m]`GL_EXT_read_format_bgra, GL_NV_pack_subimage, GL_EXT_frag_depth,`15:59
mighty17[m]it seems like its present, but the logs say `(phoc:18590): phoc-wlroots-CRITICAL **: 19:28:39.915: [render/gles2/renderer.c:445] Cannot read pixels: missing GL_EXT_read_format_bgra extension`15:59
freemangordonhmm, seems like a bug16:00
freemangordonwhich mesa is that?16:00
mighty17[m]from maemo-leste-upstream-forks16:01
freemangordonok16:01
* freemangordon boots d416:01
freemangordonmighty17[m]: hmm, this is DRM or WL or X11?16:02
freemangordonI guess X1116:02
freemangordonbut you want DRM16:03
mighty17[m]WL16:03
mighty17[m]as in the error is from wl....16:03
freemangordonyes, but renderer is drm, afaik16:03
mighty17[m]right16:04
freemangordonsec (phone call)16:06
freemangordonhmm, is it?16:11
freemangordonDISPLAY=:0 does not look like DRM16:11
mighty17[m]thats just me doing it from ssh16:12
freemangordonstill, you ask for x11 platform capabilities16:12
freemangordonnot for GBM platform16:12
mighty17[m]hm? im a bit lost16:12
freemangordonthere are 3 platforms that have different extensions: GBM (or drm), X11 and WL16:13
freemangordonwhich renderer does wlroots use?16:14
freemangordonDRM or X11?16:14
mighty17[m]wayland16:14
freemangordonno, there is no such renderer, unless I am missing something16:14
freemangordonor was it backend?16:15
* freemangordon checks16:15
mighty17[m]hm im confused16:15
freemangordonwait a sec16:15
mighty17[m]i suppose its drm16:15
freemangordonsee https://pastebin.com/KYTYZkeh16:17
freemangordonno GL_EXT_read_format_bgra16:18
freemangordonthis is for DRM backend16:18
mighty17[m]hmm, then adding it should be as simple as reusing IMG_read_format ?16:20
freemangordonnot sure https://registry.khronos.org/OpenGL/extensions/IMG/IMG_read_format.txt16:21
mighty17[m]<mighty17[m]> "https://github.com/tmlind/..." <- this commit did work magically16:23
freemangordonbetter ask tmlind about it16:23
freemangordon#define GL_BGRA_EXT                       0x80E116:23
freemangordon#define GL_BGRA_IMG                       0x80E116:23
freemangordonI think it should be a little more clever16:25
mighty17[m]maybe it isnt who knows16:25
mighty17[m]but fair point16:25
freemangordonhmm, no, seems those are interchangeable16:26
freemangordonbesides that GL_EXT_read_format_bgra can return UNSIGNED_SHORT_1_5_5_5_REV_EXT in theory16:29
freemangordonso it is a superset of GL_IMG_read_format16:29
freemangordonmighty17[m]: you may want to fix that in pvr driver and make a PR16:30
mighty17[m]freemangordon: Pvr driver? Wdym mesa or blobs?16:34
freemangordonmesa16:35
mighty17[m]<freemangordon> "besides that GL_EXT_read_format_..." <- Ah then it should work by just interchanging :D16:35
mighty17[m]freemangordon: Me has no clue how🥲16:35
freemangordonintercept eglQueryString and append GL_EXT_read_format_bgra to the list16:36
freemangordonok, I may do that someday17:04
Wizzupfreemangordon: https://www.youtube.com/watch?v=hBStZAGXvM017:53
mighty17[m]I'll look into it later this week then17:59
uvosis it not a bit wierd that it makes sutch a difference in fullscreen animations, did you improve something besides using buffer age? @freemangordon18:16
uvosi would have expected that to not matter if the entire display is changed18:17
Wizzupwell that depends on if it's also reloading the bg no?18:17
uvosthe bg also moves18:18
uvoswas it redrawing the window pixmaps too?18:18
uvosie updateing the textures18:18
uvosbtw maybe we could fix the tasknav animation in portrait18:20
uvosits a bit of a pet peeve of mine (i can also try some time)18:20
freemangordonuvos: the big difference is that it does not re-upload the whole buffer every frame18:27
freemangordonthat's what enunes' hack was doing18:27
freemangordonumm, what is wrong with tasknav animation?18:28
uvosfreemangordon: in landscape it zooms out to the center of the display, in portrait it skews to one side, im pretty sure its just a missing coordinate swap18:28
freemangordonis that visible in the ^^^ video?18:29
uvosyeah18:29
uvos2:4518:29
uvosit looks like the center point of the animation dosent change for protrait18:30
uvoswhile the center of the display obv dose18:30
uvosjust a minor visual glitch18:30
freemangordonhmm, I guess I can change transitions.ini to make that animation last few seconds18:31
* freemangordon boots PP18:31
uvosits visible on all devices btw18:31
uvosnot pp specific18:31
freemangordonok18:31
freemangordontasknav is my pet for the last couple of years :)18:32
freemangordonso I will fix that when I find some spare time18:32
uvosthen you probubly know where to look18:32
freemangordonshoudl be an easy fix18:32
freemangordonyeah18:32
freemangordonthough I see nothing @ 2:4518:33
freemangordonoh, right18:34
freemangordonnow I see18:34
sicelolovely 'woosh' sounds. have we had them all along, or they're new to Leste?19:40
freemangordonsicelo: audio was not working :)19:40
freemangordonor, if you mean "do we have it in fremantle?", yes, we have them19:41
siceloi meant in Leste. i recall a day or two ago Wizzup said something about importing certain sounds. or those were ringtones only19:42
Wizzupit wasn't added to any meta pkg yet19:50
uvosthe woosh sounds have been there all alonge20:23
uvosthats maemo-input-sounds20:23
uvosthats worked for quite some time20:23
siceloi guess it's because my d4 acts up so much, so i hardly use Leste20:24
uvosit also depends on your profile20:25
uvosyou may have them disabled20:25
uvosthe woosh is tied to the click, wich i find really annoying20:25
siceloactually it isn't tied to the click (i've always had clicks disabled)20:30
uvosit is if you just swich profiles20:31
uvos(as opposed to creating a custom one)20:31
siceloit's in "System Sounds". just rechecked with my Fremantle N900. unless something's changed in Leste20:32
uvosyes thats correct20:32
uvosbut theres just 2 default profiles 1 has both enabeled 1 both disabled20:32
uvosnot that it really matters20:32
siceloclick is elsewhere ... Key Sounds and/or Touch Screen Sounds20:32
uvosas you can create your own20:32
uvossicelo: right but we dont have that exact ui in leste20:33
uvoswe just have profilesx20:33
uvosits in there20:33
uvosbut you have to create a new profile20:33
siceloalright. yeah i'm not familiar with profilesx20:33
freemangordonuvos: https://github.com/maemo-leste/hildon-desktop/commit/d248bbfc952f097587983c686c4a424feadd892322:40

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