Gajim - 2023-12-17


  1. kurion

    Couldn't find a usage of gajim/data/sounds/send-failed.wav. I think the MessageNotSent event is a good candidate for its use.

  2. kurion

    will it be sufficient to hook into gajim/common/client/Client/send_message?

  3. kurion

    Also that sound is missing from Manage Sounds window

  4. kurion

    Also, that sound is missing from Manage Sounds window

  5. kurion

    Oh I'm so sorry, It is I who added it to my local branch. Totally forgot about it. Checked out origin/master and sound isn't there.

  6. kurion

    If I want to play different sounds on MessageSent event based on if it is encrypted or unencrypted, where should I look into?

  7. kurion

    there is a sound event for message-sent but the playing of the sound is handled at main.py

  8. kurion

    I am finding it difficult to check the encryption method used for the message from inside main.py. Any suggestions?

  9. kurion

    at least quite some work, if not difficult.

  10. bodqhrohro

    Hey, they closed #11722! :P

  11. cal0pteryx

    bodqhrohro: I consider this trolling. If you continue to troll, you have to go

  12. bodqhrohro

    cal0pteryx: if that is trolling, how XHTML-IM deprecation is serious? I don't get it.

  13. Byte

    yikes 🥶

  14. pep.

    I guess they're not totally wrong that the security considerations brought to deprecate xhtml-im were bonkers :-°

  15. pep.

    May have been considered trolling too at the time but nobody picked that up

  16. cal0pteryx

    pep.: this user has a history, this is just the latest iteration

  17. pep.

    Ok

  18. lovetox

    Gajim had no part in deprecating XEPs

  19. lovetox

    Complaining here about it is useless

  20. pep.

    Well gajim can decide to remove support or implement them anyway

  21. pep.

    (Or *not* remove support)

  22. debacle

    pep.

  23. debacle

    > I guess they're not totally wrong that the security considerations brought to deprecate xhtml-im were bonkers :-°

  24. debacle

    I agree.

  25. debacle

    Sorry for asking yesterdays question again: > OMEMO carbons are broken for me atm. In both directions, Gajim 1.8.4 on both devices. How can I accept my own keys, again? I can't read my own messages on the respective other device :-(

  26. lovetox

    debacle, so you dont receive the messages?

  27. lovetox

    or the other application cant decrypt them?

  28. lovetox

    what application is this?

  29. lovetox

    what is the error it shows?

  30. debacle

    lovetox Both applications are Gajim 1.8.4, one on my private PC, one on my work PC ;-) The error is, that *my own* messages appear as "This message was encrypted with OMEMO and could not be decrypted."

  31. debacle

    I receive everything, but can't decrypt.

  32. lovetox

    then please gather debug logs so we see the error

  33. debacle

    lovetox OK!

  34. debacle

    Is there a specific debug option for OMEMO stuff?

  35. alexander

    Eh..different devices, different omemo key i would say? Missing key exchange?

  36. keef removed by cal0pteryx

    Spam

  37. a moderator removed a message

    Spam

  38. lovetox

    debacle, no, i would run the -v

  39. debacle

    lovetox Will do!

  40. kurion

    I am trying to understand the control flow of sending an OMEMO encrypted message. I see handlers for 'message-sent' in quite a few files. Specifically, I want to play different sound effects for encrypted and unencrypted sent messages. I'd love some hints where I should tap into.

  41. kurion

    I can see that main.py plays the sound, but inside _on_message_sent, there is no variable that will allow checking if the message is encrypted or not

  42. kurion

    lovetox: Could you please briefly explain the usage of `ged.GUI1`, `ged.GUI2` and `ged.POSTGUI` for the same event `message-sent` in multiple files?

  43. kurion

    is this for handling the event at different levels?

  44. debacle

    lovetox Habe Dir privat ein paar Zeilen aus dem log geschickt.

  45. lovetox

    kurion, then you need to extend the MessageSent object with such a variable that tells you if the message was encrypted

  46. lovetox

    > lovetox: Could you please briefly explain the usage of `ged.GUI1`, `ged.GUI2` and `ged.POSTGUI` for the same event `message-sent` in multiple files? when connecting to an event you can control with these constants in what emission stage you want to receive the event

  47. kurion

    lovetox: thank you. Is main.py the only appropriate place to change for this sound functionality? Because, to be honest, extending MessageSent to have one more variable looks like quite some work, if I am not mistaken. :P

  48. lovetox

    i think you are mistaken

  49. lovetox

    just add a line in the event

  50. lovetox

    and another line where you assign the value to the variable

  51. kurion

    wow, the default value would be None and I will need to raise MessageSent event with the appropriate boolean from client.py. right?

  52. lovetox

    yes

  53. kurion

    Is it right to say that flexibility of Python saved me some work here? or is this flexibility available in statically languages as well ?

  54. lovetox

    i would make a boolean "is_encrypted"= False/True

  55. kurion

    Is it right to say that flexibility of Python saved me some work here? or is this flexibility available in statically typed languages as well ?

  56. kurion

    lovetox: will go with `is_encrypted`, thanks

  57. lovetox

    i dont think that python makes this easier, its a standard object oriented approach

  58. ClapTrap

    Hey Gajim team. I've installed Gajim by compiling it from source. It is working great. The only problem I am facing is it is showing "Needs gpell to be installed" under the switch to turn on the spell checker.

  59. ClapTrap

    Hey Gajim team. I've installed Gajim by building it from source. It is working great. The only problem I am facing is it is showing "Needs gpell to be installed" under the switch to turn on the spell checker.

  60. ClapTrap

    I've installed `pygtkspellcheck` within the environment where I've installed the Gajim. But still same error. Any other way to fix this?

  61. ClapTrap

    I've installed `pygtkspellcheck` within the environment where I've installed the Gajim. But still same error. Any other way to fix this? Thanks for your help.

  62. cal0pteryx

    it needs `gspell`, not gpell

  63. cal0pteryx

    https://packages.debian.org/source/sid/misc/gspell

  64. ClapTrap

    Yes. I made a typo there.

  65. ClapTrap

    Thanks. It is working now.

  66. cal0pteryx

    Great :)

  67. shodan

    Please add the ability to paste multiple pictures at once ? You can drop multiple picture files and that works, but you can paste multiple images, as far as I can tell. And when you're in the "send files" dialog, you can't also add more pictures to the send list by pasting (but you can drag and drop more pictures) Also, there is a delay and animation when you paste pictures/files, could that be a bit shorter ?

  68. shodan

    (Also I just discovered, if you paste and cancel and paste and cancel many times, when you go to actually post, it would post the file anymore and I had to restart gajim, not sure what happenned here nor the exact sequence that triggered the bug, might have to do with switching workspace while the send file dialog was up)

  69. shodan

    https://chat.domn.net:5443/upload/500b07a7efeff7dd5a382d5bf3fa0d30cec686c6/eOlElU6J5gczV3apcZWDMaFcYc2qfvBQlu8tpVhp/send_pasted_image_delay__8x_slow_down.mp4

  70. shodan

    Here is what that delay looks like about 0.4375 seconds, it's not much but just enough to be annoying. This video is slowed down 8 times.

  71. polarian

    shodan, you must be 20>

  72. polarian

    sorry... that was completely random... just saw fingers and shit and

  73. polarian

    you know what I will let myself out

  74. shodan

    I'm over 40 actually

  75. polarian

    DAMN

  76. lovetox

    transition duration is 200 ms

  77. lovetox

    but depending on CPU this could be slower

  78. lovetox

    you can disable animations alltogether if you want, search for gnome disable animations

  79. shodan

    This would have been the way to tweak it, https://github.com/Selenium-H/Animation-Tweaks https://conference.gajim.org:5281/pastebin/5d379b05-0d38-4f0b-9a1a-eacebd029376

  80. shodan

    It turned 7 lines of text into a pastebin url ? :\