[00:42] <bluesabre> Unit193: I don't think so
[00:42] <Unit193> Then might actually be able to move xfce4-indicator-plugin to desktop.
[02:49] <ali1234> maybe someone here knows... how can i restart the gvfs daemon in xubuntu session with debugging options?
[08:13] <ochosi> Unit193: 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)
[10:02] <Unit193> ochosi: So far I think I only have "Sit in #freenode long enough to get spam" :P
[10:34] <ochosi> Unit193: with what client..?
[10:45] <Unit193> notify-osd
[10:45] <Unit193> Eg, `notify-send`
[18:42] <flocculant> bluesabre: ygm
[21:13] <ochosi> notify-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:38] <ali1234> notify stack appears to be unicode safe
[21:38] <ali1234> its probably the irc client?
[21:51] <ochosi> that's why i asked about the irc client...
[21:51] <ochosi> Unit193: in case you missed it, that was for you ^ :)
[21:51] <Unit193> ochosi: Irssi, as always.
[21:51] <ochosi> and do you have a string with which i could try to reproduce?
[21:54] <ochosi> i presume the locale is en_US?
[21:55] <Unit193> Well 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 EST
[21: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 known
[21:56] <ochosi> and what do you put into notify-send exactly?
[21:56] <ochosi> plus, what verson of notifyd is that?
[21:56] <ochosi> (as you can see, i could use a bugreport)
[21:56] <ali1234> notify-send '&acirc;' '&acirc;'
[21:57] <ali1234> prints nothing for the message
[21:57] <ali1234> only title
[21:58] <ali1234> and i get that same warning in journalctl
[21:58] <Unit193> It'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.
[22:02] <ali1234> Unit193: what happens if i highlight you and say Â?
[22:02] <Unit193> ali1234: Same deal, it doesn't do UTF8 well.
[22:02] <ali1234> i dont think it is utf-8 as such
[22:02] <ali1234> it seems like there are two bugs here
[22:03] <Unit193> Difference 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] <ochosi> weird, notify-send '&acirc;' '&acirc;' works fine for me
[22:03] <ochosi> but the unicode stuff is not resolved, it's printed as is
[22:03] <ali1234> first, your irc client is converting unicode code points into html entities, second something in the notify stack is not handling all html entities
[22:03] <ochosi> but not swallowed
[22:03] <ochosi> only pango is handled
[22:03] <ochosi> not "all html"
[22:03] <ali1234> notify-send Â Â works for me
[22:04] <ali1234> but the html entity does not
[22:04] <ochosi> also, the example from Unit193 also works for me (git master)
[22:05] <ali1234> replacing codepoints by the html entity is a common strategy when trying to encode unicode
[22:05] <ali1234> it isn't really a bug as such - but in this case it is because the receiver doesn't support html...
[22:06] <ochosi> yeah, i don't know of a good way to handle html with glib
[22:08] <ali1234> notify-send 'summary' '&#194;' <- this works
[22:08] <ali1234> and that's the same char
[22:08] <Unit193> I can fix that part, but I suppose the puking all over the screen is technically more what it's supposed to do.
[22:08] <ali1234> pretty much
[22:09] <Unit193> Just not very user friendly.
[22:09] <ali1234> saw someone post one the other day that ended up drawing over the next several lines of irc
[22:09] <ali1234> unicode is weird
[22:10] <Unit193> notify-send "Subject" "\o/"  is fun too. :P 
[22:10] <Unit193> ochosi: Right, so technically not wrong, but just not ideal really.
[22:11] <ochosi> i wouldn't mind improving on this, i just have no idea how
[22:11] <ochosi> i did look into these issues already at some point before 0.4.0
[22:11] <ochosi> and things were even improved
[22:12] <ali1234> btw you guys might like this if you run compiles in the bg all the time: http://paste.ubuntu.com/26015297/
[22:12] <ochosi> but yeah, the status quo is what it is
[22:12] <ali1234> alias make='notify-when-done make'
[22:12] <ali1234> get a notification when it finishes, with the runtime and return code
[22:13] <ochosi> sounds nice
[22:13] <ochosi> will have to try that
[22:13] <ochosi> crap, screenshooter fails to upload
[22:14] <ochosi> Unit193: so this is also what you get..? https://imgur.com/a/mlUbj
[22:16] <Unit193> ochosi: "nothing"?  I get more than nothing.
[22:16] <ochosi> ehm, what do you mean "nothing"?
[22:17] <ochosi> the ▄ characters look ok in my notification bubble
[22:17] <ali1234> the ▄ have nothing to do with it
[22:17] <ochosi> that was one example from above
[22:17] <ali1234> the problem is caused specifically when Â is sent as a html entity by name
[22:20] <Unit193> ochosi: There didn't appear to be an image in that link, at least for me.
[22:20] <ali1234> press reload
[22:20] <ochosi> rly?
[22:20] <ochosi> imgur looks ok for me
[22:20] <ali1234> it didnt load for me either, at first
[22:20] <ochosi> i 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:21] <Unit193> ochosi: I mean, either way I suppose thanks since I fixed it now, buuut. :3
[22:21] <ali1234> so two ways to fix this bug:
[22:22] <ali1234> one, make irssi emit numerically escaped code points instead of the html named entities
[22:23] <ali1234> two, make notify daemon accept html entities
[22:23] <ali1234> three, make irssi output real utf-8, and make notify daemon ignore escaped entities entirely
[22:24] <ochosi> option three sucks a little, because pango markup support is already there and in theory some html entities *should* be handled according to the notification spec
[22:24] <Unit193> I wonder why the old one didn't print garbage. :3
[22:24] <ali1234> they probably changed pango *shrug*
[22:24] <ochosi> it just swallowed certain things
[22:25] <ochosi> no, i changed some stuff
[22:25] <ali1234> hmm okay if handling them is part of the spec
[22:25] <Unit193> I used option three, pretty much.
[22:25] <ali1234> then irssi is at fault
[22:25] <Unit193> Well, stopped html encoding it and ran a sub on '\'
[22:26] <ali1234> pidgin does a good job rendering unicode :)
[22:26] <ochosi> at least i thought i did, need to find the commit...
[22:26] <ali1234> also i never saw it send a messed up notification either
[22:26] <Unit193> Irssi displays them fine, it's rnotify.pl that's at fault.
[22:26] <ali1234> oh, your plugin?
[22:27] <Unit193> I stole it from somewhere of course, but yeah.  It expects one to handle html encoded.
[22:27] <ali1234> i would say, if you are able, encode everything as utf-8 and don't mess with it further
[22:28] <Unit193> Yeah I disabled the html encoding (and added 's/\\/\\\\/g' to the script.)
[22:28] <ali1234> what for with the regex?
[22:28] <ali1234> auto escape slashes?
[22:28] <ali1234> hmm
[22:28] <ali1234> i wonder if that is part of the spec too
[22:29] <ali1234> and what the person who wrote it was thinking
[22:30] <ochosi> https://git.xfce.org/apps/xfce4-notifyd/commit/?id=8265b411339a390768f2c94f2bc2e0f9983da04b
[22:30] <ochosi> there you go, that's the relevant change ^
[22:31] <ali1234> hmm
[22:31] <ali1234> well the spec is the spec
[22:31] <ali1234> are you sure it says to not handle named entities though?
[22:32] <ali1234> let me guess, it isn't actually specific?
[22:32] <ochosi> iirc it isn't
[22:32] <ochosi> https://developer.gnome.org/notification-spec/#markup
[22:33] <ochosi> i think what's above is pretty much what we currently support
[22:33] <ali1234> also https://wiki.ubuntu.com/NotifyOSD#Body_text
[22:33] <ali1234> neither seems to mention entities tho
[22:34] <ali1234> they don't actually specify the text encoding at all
[22:34] <ochosi> if you want to see how far we currently follow the spec: https://docs.xfce.org/apps/notifyd/spec
[22:34] <ochosi> i think everyone just uses pango
[22:34] <ali1234> yep
[22:34] <ochosi> not sure if notify-osd isn't a little dead with unity being dead
[22:35] <ali1234> and nobody can implement a replacement even if they wanted to, because the spec is insufficient to do so
[22:37] <Unit193> \o/
[22:38] <ochosi> https://wiki.ubuntu.com/NotificationDevelopmentGuidelines#If_a_notification_uses_a_hyperlink_or_text_formatting.2C_but_it.2BIBk-s_showing_up_as_plain_text
[22:38] <ochosi> (and the following sections)
[22:38] <ochosi> that's what you were looking for i think
[22:38] <ali1234> nah, hyperlinks are unrelated
[22:38] <ali1234> this is about text encoding ;0
[22:39] <ali1234> the next section however...
[22:39] <ochosi> yes, i said: and the following sections ;)
[22:39] <ali1234> yeah, sorry :)
[22:39] <ochosi> i like the "[This example code will be provided soon.]" :D
[22:39] <ali1234> so it should not try to interpret them
[22:40] <ali1234> or it should interpret them all, depending on what it advertises
[22:41] <ali1234> ugh they could have choses less confusing examples there
[22:42] <ali1234> hmmmmmm
[22:45] <ali1234> i 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 them
[22:45] <ali1234> so what it does when it gets one is still undefined, but it should never get one
[22:46] <ochosi> btw, i may have a more intruiging problem to debug for oyu
[22:46] <ochosi> if you're at all interested
[22:47] <ali1234> oh?
[22:47] <ochosi> so i've been working on the xfce4-panel port for a while
[22:47] <ochosi> and it's mostly stable now and i think we've reached feature-parity
[22:47] <ochosi> (i don't ever get crashes etc)
[22:47] <ochosi> but there is some odd behavior with respect to autohiding and intelli-hiding the panel
[22:48] <ochosi> somehow the signals have doubled since gtk2, even though (or because?) the code is still the same
[22:48] <ali1234> hmm double signals
[22:48] <ochosi> and that makes the panel sometimes "flicker" (i.e. pop up and down quickly)
[22:48] <ali1234> what signal specifically? where does it come from?
[22:49] <ali1234> i don't know how any of that stuff works
[22:49] <ali1234> is this a multimonitor setup?
[22:49] <ochosi> so 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 window
[22:49] <ochosi> one is always offscreen (at -9999/-9999)
[22:51] <ochosi> and then with gtk_window_move the two windows change places and with a gtk_widget_queue_resize these updates should be triggered
[22:51] <ali1234> why is it off screen rather than just being hidden?
[22:51] <ochosi> the size_allocate signal is triggered (maybe too often?) and then the windows are really moved around
[22:51] <ochosi> phu, no idea, i didn't question those decisions yet
[22:52] <ochosi> i wanted to avoid having to rewrite that part tbh
[22:53] <ochosi> i also have a branch that prints quite a lot of debug info so you can more easily follow what's going on
[22:53] <ochosi> i can push that to a user repo if you'd be willing to take a look
[22:54] <ochosi> (my eyes are just weary from looking, a fresh pair of them maybe see what's wrong more quickly)
[22:54] <ali1234> window->autohide_state == AUTOHIDE_HIDDEN
[22:54] <ali1234> what does this actually mean?
[22:54] <ali1234> and POPUP too
[22:55] <ochosi> that's handled in panel_window_size_allocate
[22:55] <ali1234> yes i know
[22:55] <ali1234> but what does it mean?
[22:55] <ali1234> if it is true, what is that telling me about the window?
[22:56] <ochosi> it means that the current state is that the autohide-window is shown and the panel window is hidden
[22:56] <ochosi> the else hides the autohide-window
[22:56] <ali1234> okay and what about POPUP?
[22:57] <ochosi> i think POPUP is set while the panel is still hidden but it may be in the process of being shown
[22:58] <ochosi> so the POPUP (unhide) is queued
[22:58] <ochosi> but the panel is still hidden
[22:58] <ochosi> because it
[22:58] <ochosi> 's scheduled via the g_timeout_add_full
[22:58] <ochosi> via panel_window_autohide_queue
[22:58] <ali1234> hmm, so that means "if the panel is shown or about to be shown"
[22:59] <ochosi> "if the panel is hidden or about to be shown but not yet shown"
[22:59] <ali1234> but it says autohide_state == HIDDEN
[22:59] <ochosi> yes, that means the panel is hidden
[22:59] <ochosi> the autohide-window is shown
[23:00] <ali1234>  ah yes, window-> vs window->autohide_window
[23:00] <ochosi> yup
[23:00] <ochosi> that's what i tried to explain earlier with moving the autohide window offscreen
[23:00] <ali1234> so the first block is hiding the panel and showing the autohide
[23:00] <ali1234> and the second bit is hiding the autohide and shoing the panel
[23:00] <ochosi> yup, the else is for showing the panel
[23:01] <ali1234> which way does the flicker happen?
[23:01] <ochosi> one reason why i stumbled across the signal issue was that i wanted to try to implement a "slide out" animation for the panel
[23:01] <ochosi> so it's clearer visually "where it goes"
[23:02] <ochosi> https://bugzilla.xfce.org/show_bug.cgi?id=13640
[23:02] <ochosi> the first comment has an instruction to reproduce
[23:03] <ochosi> the later comment from Andre is not a regression
[23:03] <ali1234> i can't install gtk3 stuff at the moment
[23:03] <ochosi> you can try using the xfce-test docker container
[23:03] <ali1234> does this happen at the top or the bottom panel? sides?
[23:03] <ochosi> it compiles the panel within the container and you get access to it via xephyr
[23:03] <ochosi> i only tested the top panel
[23:04] <ali1234> i 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] <ochosi> maybe that makes a difference, i never thought of testing other panel locations
[23:04] <ochosi> https://github.com/schuellerf/xfce-test
[23:04] <ochosi> the usage etc is in the readme.md
[23:07] <ali1234> docker: 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:08] <ali1234> yeah i really don't want to dig into that :/
[23:08] <ochosi> did you pull from docker.io or build it locally?
[23:08] <ochosi> the latter should always work
[23:08] <ali1234> i followed the instructions in the readme
[23:09] <ochosi> is the docker daemon running though?
[23:09] <ali1234> i have absolutely no idea
[23:10] <ochosi> :>
[23:42] <ali1234> okay it's working :)
[23:44] <ali1234> i can't reproduce