Gajim - 2024-11-04


  1. The Wild

    Hi there I just migrated from Ubuntu 23.04 to Arch. Keeping my home dir intact Just ré-installed Gajim through pacman and I have 2 main issues : - Gajim seem to not have reused my omemo keys and I'm confused of whether it's properly connected - the left menu doesn't appear and if I click on the arrow '<' at the bottom left of the app, there's a crash report with a teace back of pyjhon `MainWindow object has no attribute '_chat_page'` Gajim : 1.9.5 I can't remember if I was on a snap version or not on Ubuntu 23.04 I have backup of my home system so I might be able to figure it out with pointers Hope I'm in the right place to ask those type of questions Thanks for reading

  2. meson

    The Wild, I don't think there exists any Snap version of Gajim? How have you migrated your data exactly?

  3. lovetox

    The Wild: how did you install Gajim

  4. The Wild

    > The Wild, I don't think there exists any Snap version of Gajim? How have you migrated your data exactly? There is on Ubuntu

  5. The Wild

    > The Wild: how did you install Gajim Via Pacman `pacman -Su gajim`

  6. chud

    The Wild: are the versions on snap and arch the same

  7. The Wild

    I would say no I'm still looking around to find the version I'm pretty I was on 1.9.3 or 1.9.4 Not sure I had the 1.9.5 before migration

  8. The Wild

    I'm so sorry I got confused: I think I had installed it using flatpak !

  9. The Wild

    And a friend of mine indicates me that as of August 1st 2024, I was in 1.9.3 I probably didn't upgrade so I consider safe to assume that was the version I was in On first launched of the 1.9.5 on Arch Linux, Gajim showed a window indicating that the database had been migrated successfully

  10. cal0pteryx

    The Wild: Flatpak is a different directory. Please make sure to copy the correct one https://dev.gajim.org/gajim/gajim/-/wikis/help/Backup

  11. The Wild

    Oh That would explain a lot The `.local/share/gajim` dir I have must be from an older version of Gajim installed through Ubuntu I'm gonna do that and clear things a bit

  12. The Wild

    Ok Did that I still have errors at launch. With a long traceback from python ending up with : `Gst is not defined` Gajim doesn't appear in any tray although it's configured to minimise on close In the OMEMO tab of my account, a line indicates "account isn't connected"

  13. cal0pteryx

    The Wild: please install necessary dependencies. It looks like gsteamer is missing for example

  14. cal0pteryx

    You can find all dependencies in gajim's readme. Although the package you're using should sort that out. Or maybe it's just better to use flatpak after all?

  15. The Wild

    I'll try to identify the issue with the package I don't want to use flatpak ever if I can Same goes for snap and any other things like this

  16. The Wild

    gststreamer is marked as an optional package in Arch Linux Should the app be able to function without it ?

  17. The Wild

    Ok, fixed it The line that fixed it : `sudo pacman -Su --asdeps emoji-font farstream gsound gst-plugin-gtk gst-plugins-base gst-plugins-ugly gst-libav gstreamer` I added additional dependencies here. But maybe something shoud change on the Arch front ?

  18. debacle

    > I'll try to identify the issue with the package > > I don't want to use flatpak ever if I can > Same goes for snap and any other things like this Same here 😀️ While the package names differ slightly from one distribution to the other, you can also check, what we do at Debian: https://packages.debian.org/source/unstable/gajim has the source/build dependencies https://packages.debian.org/sid/gajim shows the binary/install dependencies

  19. The Wild

    Well, Thinking about it, it's probably that I had videos and calls enabled on Gajim flatpak in Ubuntu, and the config indicated that. Then the version on Arch was trying to load that based on the config As of now, I consider the problem solved Thanks for the help

  20. Link Mauve

    The Wild, what does “I had videos and calls enabled” mean exactly?

  21. Link Mauve

    I’m one of the maintainers of the gajim-git package so if some dependency became mandatory for some reason I’m interested to figure out why.

  22. The Wild

    At least on Arch, videos and calls aren't available by default in Gajim I think I had activated it through flatpak But it's a guess. Haven't checked the config nor how it used to work on Ubuntu I installed `gajim` and not `gajim-git` My conclusion was oriented toward: i had a configuration issue switching from flatpak on Ubuntu to Gajim pacman package without optional dependencies I opened to test a few thing to clarify, I just don't know what i could do to investigate further

  23. lovetox

    Gstreamer should be an optional dependency

  24. lovetox

    meson, in audio_preview.py there are still two TODO comments for gtk4, could you take a look?

  25. cal0pteryx

    Voice messages require gstreamer though

  26. cal0pteryx

    Also we use gstpbutils

  27. meson

    lovetox: I will

  28. lovetox

    But Gst import is optional, we dont fail on Gajim start if Gst is not there

  29. lovetox

    also in the audio preview Gst ist optional

  30. Link Mauve

    The Wild, do you have the exact traceback?

  31. Link Mauve

    Switching from one package to another shouldn’t cause any such issue.

  32. Link Mauve

    Also calls are still unsupported.

  33. The Wild

    I have one of them yes I can provide it a bit later

  34. cal0pteryx

    Gajim is currently migrating from GTK3 to GTK4. 🔧 GTK is Gajim's user interface toolkit. It provides building blocks, like windows, buttons and labels. 🧩 Read more here: https://fosstodon.org/@gajim/113426619160581769

    ❤ 4
  35. bh0d

    Hello. What would I need to port a plugin from another client to Gajim?

  36. bh0d

    Specifically, from a C++/Qt client to any Gajim version.

  37. Link Mauve

    bh0d, basically rewriting it; what kind of plugin is that?

  38. bh0d

    Link Mauve: the client switcher plugin from Psi+.

  39. bh0d

    https://github.com/psi-im/plugins https://github.com/psi-plus/psi-plus-snapshots/plugins Should be under these, I'm having trouble with github at the moment.

  40. Link Mauve

    bh0d, Gajim is written in Python (not C++), using GTK (not Qt), and has totally different internals than Psi.

  41. bh0d

    Yes.

  42. Link Mauve

    Very little could actually be ported, mostly just the logic.

  43. bh0d

    I do assume it would have to be rewritten entirely.

  44. Link Mauve

    You can approach it as writing a new plugin yes.

  45. lovetox

    bh0d, what does a client swichter plugin do

  46. bh0d

    lovetox: it allows you to switch/spoof the client that is displayed. Meaning could use Gajim and someone else would see you using Profanity.

  47. bh0d

    It also, at least in Psi+ allows you to set the 'iq request' or whichever one denies a timezone from displaying. You can also set all options to 'not implemented' or 'ignore' which will publish all info as 'unknown' and ignore request entirely (but not publish), respectively.

  48. bh0d

    Gajim already has deny idle time, timezone, os/client info. So that's not something that needs to be ported.

  49. bh0d

    Gajim also already allows changing the resource header, but that's not something in the plugin anyway. It can work with a plugin if someone can 'port' the idea into a plugin.

  50. lovetox

    it would be a pretty trivial plugin

  51. lovetox

    https://dev.gajim.org/gajim/gajim-plugins

  52. lovetox

    there is not much documentation, but some example plugins

  53. bh0d

    How so?

  54. lovetox

    as you said the only thing you are look for is changing the disco info from Gajim to some other string

  55. lovetox

    this is done in the caps module, and you can access this from a plugin, call set_caps() with whatever info you want

  56. lovetox

    even for something like a config GUI there are simple examples in the plugin repo

  57. lovetox

    you basically need just a dropdown with strings

  58. bh0d

    I think the plugin uses iris caps calculation.

  59. bh0d

    So there's a lot of caps node, caps version and so forth stanzas.

  60. bh0d

    If github can let me access again I can double check...

  61. lovetox

    in gajim this is all done by the xmpp lib

  62. lovetox

    you just call with the data you want to set

  63. lovetox

    https://dev.gajim.org/gajim/gajim/-/blob/master/gajim/common/modules/caps.py?ref_type=heads#L181

  64. lovetox

    but why is is important that someone doesnt know that you are on Gajim?

  65. bh0d

    For the same reasons disabling os/client, idle time, timezone from showing in Gajim is possible.

  66. bh0d

    Anyway, thanks for the pointers, I will look into this.

  67. deport

    Remember that non-default client behavior makes you more unique

  68. diane

    Hi, I heard rumors that gajim is supposed to respond to the light/dark mode button, I'm on Debian testing with Gajim 1.9.5. Is gajim suppose to change it's colors on the button press, or does it only check on startup?

  69. lovetox

    why are you asking this? do you intend to very often switch between those modes?

  70. lovetox

    you can find light/dark mode settings in Gajim -> Preferences

  71. diane

    Due to the lighting from my windows it's helpful to change it to light mode during the (very bright) daytime

  72. lovetox

    we get a signal from dbus org.freedesktop.portal.Settings

  73. lovetox

    that we act on, but you probably need to install something that offers this interface

  74. based

    i remember seeing something about this on archwiki give me a second

  75. based

    https://archlinux.org/packages/extra/x86_64/darkman/

  76. based

    darkman

  77. based

    "Framework for dark-mode and light-mode transitions on Linux desktop" that should be what youre looking for, right?

  78. based

    using it, you can also automate it by time 👍

  79. diane

    Huh. There's a Dark Theme option on the Style tab of settings, and when I change it the subject box changes colors, but otherwise nothing else changes

  80. diane

    I saw the Gajim account on mastodon talking about Gtk4, and depending on the widgets chosen you can have the whole application change coloring depending on the setting

  81. deport

    As I recall light/dark changes subject box and nick colors