Gajim - 2023-09-28


  1. 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> ```

  2. 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?

  3. bodqhrohro

    nicoco: I suspected that too before, but found no confirmations it's actually prohibited, any symbols seem to be valid in resourcepart.

  4. bodqhrohro

    Actually, it's a Prosody issue as such stanzas don't even reach clients, so I investigate it there already.

  5. 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.

  6. 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.

  7. 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?

  8. cal0pteryx

    kurion: "Gajim is ready" is not coming from gajim, but from your DE

  9. lovetox

    bodqhrohro: nbxmpp.protocol.JID.from_string() will tell you if it's valid

  10. 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"

  11. 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"

  12. kurion

    and the following: "no idea really. gio.notification is implemented in glib/, that's what I know"

  13. kurion

    I am feeling kind of lost here.

  14. 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?

  15. fjklp

    kurion: you can stop this by setting use_urgency_hint=Disabled in the advanced configuration editor

  16. fjklp

    we should probably put this in the FAQ

  17. kurion

    fjklp: Thanks for chipping in. :)

  18. kurion

    I disabled that setting

  19. kurion

    But it seems all notifications stopped after I disabled it. :P

  20. fjklp

    in gnome?

  21. kurion

    yup

  22. fjklp

    it works for me in ubuntu

  23. kurion

    do you have Gajim installed?

  24. fjklp

    yes

  25. kurion

    what version is yours?

  26. kurion

    my `Notify.Notification` notifications are working as intended though

  27. fjklp

    version of what?

  28. fjklp

    gajim is nightly

  29. kurion

    > gajim is nightly was asking about Gajim.

  30. kurion

    fjklp: did you face similar issue when the setting was enabled?

  31. fjklp

    yes

  32. fjklp

    that's how I fixed it

  33. kurion

    How did you find about it?

  34. fjklp

    I don't remember, I know I spent hours on it

  35. kurion

    > we should probably put this in the FAQ +1

  36. 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?

  37. kurion

    yup

  38. 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.

  39. lovetox

    Can you link doc for activation token

  40. Lightning Bjornsson (they, he, xe/hir)

    The most pain for the lowest price!