/srv/irclogs.ubuntu.com/2017/11/21/#xubuntu-devel.txt

bluesabreUnit193: I don't think so00:42
Unit193Then might actually be able to move xfce4-indicator-plugin to desktop.00:42
ali1234maybe someone here knows... how can i restart the gvfs daemon in xubuntu session with debugging options?02:49
ochosiUnit193: could you put that into a bugreport incl a description as to how to reproduce? thanks! (having said that it's probably a pango issue, notifyd does nothing special wrt character encoding)08:13
Unit193ochosi: So far I think I only have "Sit in #freenode long enough to get spam" :P10:02
ochosiUnit193: with what client..?10:34
Unit193notify-osd10:45
Unit193Eg, `notify-send`10:45
flocculantbluesabre: ygm18:42
=== vinzv_away is now known as vinzv
ochosinotify-osd is not xfce4-notifyd. and notify-send is ok, but how can i reproduce that? what message would i have to send via notify-send?21:13
ali1234notify stack appears to be unicode safe21:38
ali1234its probably the irc client?21:38
ochosithat's why i asked about the irc client...21:51
ochosiUnit193: in case you missed it, that was for you ^ :)21:51
Unit193ochosi: Irssi, as always.21:51
ochosiand do you have a string with which i could try to reproduce?21:51
ochosii presume the locale is en_US?21:54
Unit193Well that's fun: (xfce4-notifyd-config:9552): Gtk-WARNING **: Failed to set text '<b>notify-send</b> - Tue 21 Nov 2017 04:54:39 PM EST21:55
Unit193&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;&acirc;&#150;&#132;' from markup due to error parsing markup: Error on line 2: Entity name 'acirc' is not known21:55
ochosiand what do you put into notify-send exactly?21:56
ochosiplus, what verson of notifyd is that?21:56
ochosi(as you can see, i could use a bugreport)21:56
ali1234notify-send '&acirc;' '&acirc;'21:56
ali1234prints nothing for the message21:57
ali1234only title21:57
ali1234and i get that same warning in journalctl21:58
Unit193It's a message containing '▄▄▄▄▄▄▄▄▄▄▄▄▄', 0.4.0, and notify-send seems to be fine.  I just noticed it since the older one seems to handle it better.21:58
ali1234Unit193: what happens if i highlight you and say Â?22:02
Unit193ali1234: Same deal, it doesn't do UTF8 well.22:02
ali1234i dont think it is utf-8 as such22:02
ali1234it seems like there are two bugs here22:02
Unit193Difference between the old and new one is that the old one drops the message and the new one prints a bunch of fun.22:03
ochosiweird, notify-send '&acirc;' '&acirc;' works fine for me22:03
ochosibut the unicode stuff is not resolved, it's printed as is22:03
ali1234first, your irc client is converting unicode code points into html entities, second something in the notify stack is not handling all html entities22:03
ochosibut not swallowed22:03
ochosionly pango is handled22:03
ochosinot "all html"22:03
ali1234notify-send   works for me22:03
ali1234but the html entity does not22:04
ochosialso, the example from Unit193 also works for me (git master)22:04
ali1234replacing codepoints by the html entity is a common strategy when trying to encode unicode22:05
ali1234it isn't really a bug as such - but in this case it is because the receiver doesn't support html...22:05
ochosiyeah, i don't know of a good way to handle html with glib22:06
ali1234notify-send 'summary' '&#194;' <- this works22:08
ali1234and that's the same char22:08
Unit193I can fix that part, but I suppose the puking all over the screen is technically more what it's supposed to do.22:08
ali1234pretty much22:08
Unit193Just not very user friendly.22:09
ali1234saw someone post one the other day that ended up drawing over the next several lines of irc22:09
ali1234unicode is weird22:09
Unit193notify-send "Subject" "\o/"  is fun too. :P 22:10
Unit193ochosi: Right, so technically not wrong, but just not ideal really.22:10
ochosii wouldn't mind improving on this, i just have no idea how22:11
ochosii did look into these issues already at some point before 0.4.022:11
ochosiand things were even improved22:11
ali1234btw you guys might like this if you run compiles in the bg all the time: http://paste.ubuntu.com/26015297/22:12
ochosibut yeah, the status quo is what it is22:12
ali1234alias make='notify-when-done make'22:12
ali1234get a notification when it finishes, with the runtime and return code22:12
ochosisounds nice22:13
ochosiwill have to try that22:13
ochosicrap, screenshooter fails to upload22:13
ochosiUnit193: so this is also what you get..? https://imgur.com/a/mlUbj22:14
Unit193ochosi: "nothing"?  I get more than nothing.22:16
ochosiehm, what do you mean "nothing"?22:16
ochosithe ▄ characters look ok in my notification bubble22:17
ali1234the ▄ have nothing to do with it22:17
ochosithat was one example from above22:17
ali1234the problem is caused specifically when  is sent as a html entity by name22:17
Unit193ochosi: There didn't appear to be an image in that link, at least for me.22:20
ali1234press reload22:20
ochosirly?22:20
ochosiimgur looks ok for me22:20
ali1234it didnt load for me either, at first22:20
ochosii would post a screenshot of it, but...22:20
ochosi;)22:20
Unit193...Alright, did that a few times and didn't, now it did.  Thanks?22:20
Unit193ochosi: I mean, either way I suppose thanks since I fixed it now, buuut. :322:21
ali1234so two ways to fix this bug:22:21
ali1234one, make irssi emit numerically escaped code points instead of the html named entities22:22
ali1234two, make notify daemon accept html entities22:23
ali1234three, make irssi output real utf-8, and make notify daemon ignore escaped entities entirely22:23
ochosioption three sucks a little, because pango markup support is already there and in theory some html entities *should* be handled according to the notification spec22:24
Unit193I wonder why the old one didn't print garbage. :322:24
ali1234they probably changed pango *shrug*22:24
ochosiit just swallowed certain things22:24
ochosino, i changed some stuff22:25
ali1234hmm okay if handling them is part of the spec22:25
Unit193I used option three, pretty much.22:25
ali1234then irssi is at fault22:25
Unit193Well, stopped html encoding it and ran a sub on '\'22:25
ali1234pidgin does a good job rendering unicode :)22:26
ochosiat least i thought i did, need to find the commit...22:26
ali1234also i never saw it send a messed up notification either22:26
Unit193Irssi displays them fine, it's rnotify.pl that's at fault.22:26
ali1234oh, your plugin?22:26
Unit193I stole it from somewhere of course, but yeah.  It expects one to handle html encoded.22:27
ali1234i would say, if you are able, encode everything as utf-8 and don't mess with it further22:27
Unit193Yeah I disabled the html encoding (and added 's/\\/\\\\/g' to the script.)22:28
ali1234what for with the regex?22:28
ali1234auto escape slashes?22:28
ali1234hmm22:28
ali1234i wonder if that is part of the spec too22:28
ali1234and what the person who wrote it was thinking22:29
ochosihttps://git.xfce.org/apps/xfce4-notifyd/commit/?id=8265b411339a390768f2c94f2bc2e0f9983da04b22:30
ochosithere you go, that's the relevant change ^22:30
ali1234hmm22:31
ali1234well the spec is the spec22:31
ali1234are you sure it says to not handle named entities though?22:31
ali1234let me guess, it isn't actually specific?22:32
ochosiiirc it isn't22:32
ochosihttps://developer.gnome.org/notification-spec/#markup22:32
ochosii think what's above is pretty much what we currently support22:33
ali1234also https://wiki.ubuntu.com/NotifyOSD#Body_text22:33
ali1234neither seems to mention entities tho22:33
ali1234they don't actually specify the text encoding at all22:34
ochosiif you want to see how far we currently follow the spec: https://docs.xfce.org/apps/notifyd/spec22:34
ochosii think everyone just uses pango22:34
ali1234yep22:34
ochosinot sure if notify-osd isn't a little dead with unity being dead22:34
ali1234and nobody can implement a replacement even if they wanted to, because the spec is insufficient to do so22:35
Unit193\o/22:37
ochosihttps://wiki.ubuntu.com/NotificationDevelopmentGuidelines#If_a_notification_uses_a_hyperlink_or_text_formatting.2C_but_it.2BIBk-s_showing_up_as_plain_text22:38
ochosi(and the following sections)22:38
ochosithat's what you were looking for i think22:38
ali1234nah, hyperlinks are unrelated22:38
ali1234this is about text encoding ;022:38
ali1234the next section however...22:39
ochosiyes, i said: and the following sections ;)22:39
ali1234yeah, sorry :)22:39
ochosii like the "[This example code will be provided soon.]" :D22:39
ali1234so it should not try to interpret them22:39
ali1234or it should interpret them all, depending on what it advertises22:40
ali1234ugh they could have choses less confusing examples there22:41
ali1234hmmmmmm22:42
ali1234i think what this is saying is that & should be transformed to &amp; by the program sending the message - ie any entities should be escaped, which means the notifyd will never have to interpret them22:45
ali1234so what it does when it gets one is still undefined, but it should never get one22:45
ochosibtw, i may have a more intruiging problem to debug for oyu22:46
ochosiif you're at all interested22:46
ali1234oh?22:47
ochosiso i've been working on the xfce4-panel port for a while22:47
ochosiand it's mostly stable now and i think we've reached feature-parity22:47
ochosi(i don't ever get crashes etc)22:47
ochosibut there is some odd behavior with respect to autohiding and intelli-hiding the panel22:47
ochosisomehow the signals have doubled since gtk2, even though (or because?) the code is still the same22:48
ali1234hmm double signals22:48
ochosiand that makes the panel sometimes "flicker" (i.e. pop up and down quickly)22:48
ali1234what signal specifically? where does it come from?22:48
ali1234i don't know how any of that stuff works22:49
ali1234is this a multimonitor setup?22:49
ochosiso the way this works is there are two panel windows. one is an "autohide window" that is just 3px tall (for being able to reveal the panel again), the other is the actual panel window22:49
ochosione is always offscreen (at -9999/-9999)22:49
ochosiand then with gtk_window_move the two windows change places and with a gtk_widget_queue_resize these updates should be triggered22:51
ali1234why is it off screen rather than just being hidden?22:51
ochosithe size_allocate signal is triggered (maybe too often?) and then the windows are really moved around22:51
ochosiphu, no idea, i didn't question those decisions yet22:51
ochosii wanted to avoid having to rewrite that part tbh22:52
ochosii also have a branch that prints quite a lot of debug info so you can more easily follow what's going on22:53
ochosii can push that to a user repo if you'd be willing to take a look22:53
ochosi(my eyes are just weary from looking, a fresh pair of them maybe see what's wrong more quickly)22:54
ali1234window->autohide_state == AUTOHIDE_HIDDEN22:54
ali1234what does this actually mean?22:54
ali1234and POPUP too22:54
ochosithat's handled in panel_window_size_allocate22:55
ali1234yes i know22:55
ali1234but what does it mean?22:55
ali1234if it is true, what is that telling me about the window?22:55
ochosiit means that the current state is that the autohide-window is shown and the panel window is hidden22:56
ochosithe else hides the autohide-window22:56
ali1234okay and what about POPUP?22:56
ochosii think POPUP is set while the panel is still hidden but it may be in the process of being shown22:57
ochosiso the POPUP (unhide) is queued22:58
ochosibut the panel is still hidden22:58
ochosibecause it22:58
ochosi's scheduled via the g_timeout_add_full22:58
ochosivia panel_window_autohide_queue22:58
ali1234hmm, so that means "if the panel is shown or about to be shown"22:58
ochosi"if the panel is hidden or about to be shown but not yet shown"22:59
ali1234but it says autohide_state == HIDDEN22:59
ochosiyes, that means the panel is hidden22:59
ochosithe autohide-window is shown22:59
ali1234 ah yes, window-> vs window->autohide_window23:00
ochosiyup23:00
ochosithat's what i tried to explain earlier with moving the autohide window offscreen23:00
ali1234so the first block is hiding the panel and showing the autohide23:00
ali1234and the second bit is hiding the autohide and shoing the panel23:00
ochosiyup, the else is for showing the panel23:00
ali1234which way does the flicker happen?23:01
ochosione reason why i stumbled across the signal issue was that i wanted to try to implement a "slide out" animation for the panel23:01
ochosiso it's clearer visually "where it goes"23:01
ochosihttps://bugzilla.xfce.org/show_bug.cgi?id=1364023:02
ubottubugzilla.xfce.org bug 13640 in General "Intelligent hiding: panel jumps out and in again (regression from 4.12.1)" [Normal,New]23:02
ochosithe first comment has an instruction to reproduce23:02
ochosithe later comment from Andre is not a regression23:03
ali1234i can't install gtk3 stuff at the moment23:03
ochosiyou can try using the xfce-test docker container23:03
ali1234does this happen at the top or the bottom panel? sides?23:03
ochosiit compiles the panel within the container and you get access to it via xephyr23:03
ochosii only tested the top panel23:03
ali1234i tried that once and i just got a black screen but i can try it again if you link me the instructions again :)23:04
ochosimaybe that makes a difference, i never thought of testing other panel locations23:04
ochosihttps://github.com/schuellerf/xfce-test23:04
ochosithe usage etc is in the readme.md23:04
ali1234docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:334: running prestart hook 0 caused \\\"fork/exec /usr/bin/dockerd (deleted): no such file or directory\\\"\"\n".23:07
ali1234yeah i really don't want to dig into that :/23:08
ochosidid you pull from docker.io or build it locally?23:08
ochosithe latter should always work23:08
ali1234i followed the instructions in the readme23:08
ochosiis the docker daemon running though?23:09
ali1234i have absolutely no idea23:09
ochosi:>23:10
=== vinzv is now known as vinzv_away
ali1234okay it's working :)23:42
ali1234i can't reproduce23:44

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