Gajim - 2024-04-20


  1. lovetox

    hannibal, thanks for the info, but this alone is not enough, GLib needs also to support FileIcon for the notification portal backend

  2. lovetox

    and then its not even clear this is the best solution

  3. lovetox

    currently we need to save avatar icons in a small format to a cache folder just so we can pass a file path, this means more writes to disk, more reads

  4. lovetox

    we do this only now for the freedesktop backend, because GLib simply does not support pixbuf or bytesicon

  5. lovetox

    as i understand it they will never support pixbuf, and bytesicon would need to be implemented

  6. lovetox

    hm seems its not necessary for the portal backend to add support because they serialize the whole notification

  7. lovetox

    so ignore that

  8. bot

    lovetox pushed 1 commits to branch gajim/master ci: Allow debian deploy to fail - https://dev.gajim.org/gajim/gajim/-/commit/3adad910cca245e10f7c2da1a9178a5aee45f6ba

  9. rom1dep

    > this means more writes to disk, more reads lovetox: Maybe something like this could be considered? https://unix.stackexchange.com/questions/66990/create-a-virtual-file-that-is-actually-a-command

  10. hannibal

    > i think we didnt have notifications with avatars on flatpak, but with this MR this should now work lovetox, avatars on flatpak work with current master. Do you still want me to test the MR with flatpak?

  11. lovetox

    User Avatar in a notification?

  12. hannibal

    yes

  13. lovetox

    .. this should not work

  14. lovetox

    are you using gnome?

  15. hannibal

    yes

  16. lovetox

    ok this shit is 20 layers deep

  17. lovetox

    we call Gio.Notification, which determines a backend, in flatpak case the portal backend, which passes the notification object further witout manipulating it

  18. lovetox

    then it depends what portal backend the xdg-desktop-portal uses

  19. lovetox

    in the case of gnome desktop env it uses probably xdg-desktop-portal-gtk

  20. hannibal

    There is also xdg-desktop-portal-gnome

  21. lovetox

    xdg-desktop-portal-gtk now checks if dbus name org.gtk.Notifications is available

  22. lovetox

    and if so, it just passes the notification object unseen to the dbus interface, which support pixbufs

  23. lovetox

    if the name is not available, it uses the fdo notification dbus name

  24. lovetox

    org.freedesktop.Notifications

  25. lovetox

    but this one does not support serialized notification objects, so xdg-desktop-portal-gtk needs to convert the notification object to whatever API this dbus interface wnats

  26. lovetox

    and there, it does not support conversion of all icons, and especially not pixbuf

  27. lovetox

    so yes hannibal please test the branch

  28. lovetox

    because it works only by accident for you because you use gnome

  29. lovetox

    and xdg-desktop-portal-gnome seems to have no notification code at all

  30. lovetox

    so dont know how that actually works if someone has installed that

  31. lovetox

    then of course there are even more backends, for example KDE does also only support a icon-name and bytes icon

  32. Mike Yellow

    ## Versions: https://conference.gajim.org:5281/pastebin/e37db1d0-662a-438e-88a2-c1b1f75c929e

  33. cal0pteryx

    Mike Yellow, restart Gajim. it might be that there was a third party app blocking database access, or gajim wasn't shutdown properly

  34. Mike Yellow

    Thank you.

  35. taba

    Mike Yellow: yo

  36. taba

    can't message you

  37. pcy012314jabbim.com

    1

  38. bot

    lovetox pushed 1 commits to branch gajim/master cfix: OMEMO: Handle unknown fingerprint correctly - https://dev.gajim.org/gajim/gajim/-/commit/f3971067b7d11dbbe6a8e6c756a4635b2cd963f9

  39. bot

    lovetox pushed 2 commits to branch gajim/master imprv: Notifications: Make avatars available on more platforms - https://dev.gajim.org/gajim/gajim/-/commit/0215516bd40bbba6c6f8702ec3a801404efb7814 refactor: Notifications: Improve Linux backend - https://dev.gajim.org/gajim/gajim/-/commit/a46997d8e971b3ae06c7a1d4bbfa8de4006677f9