-
bodqhrohro
Is there anything wrong with this stanza? ``` <message type="groupchat" id="1758461952" from="-608413854@zg.94.177.207.80/D/K (1382500964)" to="bqdiscord@94.177.207.80"><subject>1758461952 | D/K (1382500964) | 18 Sep 2023 04:51:17 | ั ัะบ</subject><delay xmlns="urn:xmpp:delay" from="-608413854@zg.94.177.207.80" stamp="2023-09-18T04:51:17Z"></delay><x xmlns="jabber:x:delay" from="-608413854@zg.94.177.207.80" stamp="20230918T04:51:17"></x></message> ```
-
nicoco
bodqhrohro, this is jdev@ material, and I think `from="-608413854@zg.94.177.207.80/D/K (1382500964)"` is not a valid JID because `/` can only be once in a JID, to mark the start of the resource part?
-
bodqhrohro
nicoco: I suspected that too before, but found no confirmations it's actually prohibited, any symbols seem to be valid in resourcepart.
-
bodqhrohro
Actually, it's a Prosody issue as such stanzas don't even reach clients, so I investigate it there already.
-
nicoco
> any symbols seem to be valid in resourcepart. Far from it! I'm not 100% sure about a second `/` being forbidden, but the rules of what's a valid resource part are actually quite nightmare-ish. For instance, I know for a fact that ๐๏ธ is not allowed in a resource part. Cheogram worked around that by punycoding the nicks in the resource part and using a <nick> element with a punydecoded nick when necessary. But we're really OT, the jdev or XSF MUCs are the right place to discuss that.✎ -
nicoco
> any symbols seem to be valid in resourcepart. Far from it! I'm not 100% sure about a second `/` being forbidden, but the rules of what's a valid resource part are actually quite nightmare-ish. For instance, I know for a fact that ๐๏ธ is not allowed in a resource part. Cheogram worked around that by punycoding the nicks in the resource part and using a <nick> element with a punydecoded nick when necessary. But we're really OT, the jdev or XSF MUCs are the right places to discuss that. ✏
-
kurion
Hi. I came across something really weird today. I've added some notifications to Gajim (using Gdk.Notify) for my own use case. These notifications show fine in GNOME 42.9 (although notification timeouts are ignored by the system, thanks to the developer's decision). But Gajim's own notifications appear as "Launch.py <line break> "Gajim" is ready ". Why might it behave this way?
-
cal0pteryx
kurion: "Gajim is ready" is not coming from gajim, but from your DE
-
lovetox
bodqhrohro: nbxmpp.protocol.JID.from_string() will tell you if it's valid
-
kurion
cal0pteryx: Yup. I asked about this on GNOME shell matrix room. They said the following: "App is ready usually means the app tried to activate itself without an activation token, which triggered the focus stealing prevention"✎ -
kurion
cal0pteryx: Yup. I asked about this on GNOME Shell's matrix room. They said the following: "App is ready usually means the app tried to activate itself without an activation token, which triggered the focus stealing prevention" ✏
-
kurion
and the following: "no idea really. gio.notification is implemented in glib/, that's what I know"
-
kurion
I am feeling kind of lost here.
-
kurion
since I am running gajim from a python venv, the fact that gajim is not yet installed _in_ the system; could it be the reason for not having an activation token?
-
fjklp
kurion: you can stop this by setting use_urgency_hint=Disabled in the advanced configuration editor
-
fjklp
we should probably put this in the FAQ
-
kurion
fjklp: Thanks for chipping in. :)
-
kurion
I disabled that setting
-
kurion
But it seems all notifications stopped after I disabled it. :P
-
fjklp
in gnome?
-
kurion
yup
-
fjklp
it works for me in ubuntu
-
kurion
do you have Gajim installed?
-
fjklp
yes
-
kurion
what version is yours?
-
kurion
my `Notify.Notification` notifications are working as intended though
-
fjklp
version of what?
-
fjklp
gajim is nightly
-
kurion
> gajim is nightly was asking about Gajim.
-
kurion
fjklp: did you face similar issue when the setting was enabled?
-
fjklp
yes
-
fjklp
that's how I fixed it
-
kurion
How did you find about it?
-
fjklp
I don't remember, I know I spent hours on it
-
kurion
> we should probably put this in the FAQ +1
-
fjklp
> kurion: "Gajim is ready" is not coming from gajim, but from your DE actually, I was responding to this. Is this what you are experiencing?
-
kurion
yup
-
kurion
It seems with that setting enabled, Gajim tries to flash the screen on a new notification, but is lacking something called an ActivationToken. So GNOME shell shows this weird notification and stops Gajim from stealing focus.
-
lovetox
Can you link doc for activation token
-
Lightning Bjornsson (they, he, xe/hir)
The most pain for the lowest price!