-
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
-
meson
The Wild, I don't think there exists any Snap version of Gajim? How have you migrated your data exactly?
-
lovetox
The Wild: how did you install Gajim
-
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 ↺
-
The Wild
> The Wild: how did you install Gajim Via Pacman `pacman -Su gajim` ↺
-
chud
The Wild: are the versions on snap and arch the same
-
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
-
The Wild
I'm so sorry I got confused: I think I had installed it using flatpak !
-
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
-
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
-
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
-
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"
-
cal0pteryx
The Wild: please install necessary dependencies. It looks like gsteamer is missing for example
-
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?
-
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
-
The Wild
gststreamer is marked as an optional package in Arch Linux Should the app be able to function without it ?
-
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 ?
-
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 ↺
-
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
-
Link Mauve
The Wild, what does “I had videos and calls enabled” mean exactly?
-
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.
-
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
-
lovetox
Gstreamer should be an optional dependency
-
lovetox
meson, in audio_preview.py there are still two TODO comments for gtk4, could you take a look?
-
cal0pteryx
Voice messages require gstreamer though
-
cal0pteryx
Also we use gstpbutils
-
meson
lovetox: I will
-
lovetox
But Gst import is optional, we dont fail on Gajim start if Gst is not there
-
lovetox
also in the audio preview Gst ist optional
-
Link Mauve
The Wild, do you have the exact traceback?
-
Link Mauve
Switching from one package to another shouldn’t cause any such issue.
-
Link Mauve
Also calls are still unsupported.
-
The Wild
I have one of them yes I can provide it a bit later
-
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 -
bh0d
Hello. What would I need to port a plugin from another client to Gajim?
-
bh0d
Specifically, from a C++/Qt client to any Gajim version.
-
Link Mauve
bh0d, basically rewriting it; what kind of plugin is that?
-
bh0d
Link Mauve: the client switcher plugin from Psi+.
-
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.
-
Link Mauve
bh0d, Gajim is written in Python (not C++), using GTK (not Qt), and has totally different internals than Psi.
-
bh0d
Yes.
-
Link Mauve
Very little could actually be ported, mostly just the logic.
-
bh0d
I do assume it would have to be rewritten entirely.
-
Link Mauve
You can approach it as writing a new plugin yes.
-
lovetox
bh0d, what does a client swichter plugin do
-
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.
-
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.
-
bh0d
Gajim already has deny idle time, timezone, os/client info. So that's not something that needs to be ported.
-
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.
-
lovetox
it would be a pretty trivial plugin
-
lovetox
https://dev.gajim.org/gajim/gajim-plugins
-
lovetox
there is not much documentation, but some example plugins
-
bh0d
How so?
-
lovetox
as you said the only thing you are look for is changing the disco info from Gajim to some other string
-
lovetox
this is done in the caps module, and you can access this from a plugin, call set_caps() with whatever info you want
-
lovetox
even for something like a config GUI there are simple examples in the plugin repo
-
lovetox
you basically need just a dropdown with strings
-
bh0d
I think the plugin uses iris caps calculation.
-
bh0d
So there's a lot of caps node, caps version and so forth stanzas.
-
bh0d
If github can let me access again I can double check...
-
lovetox
in gajim this is all done by the xmpp lib
-
lovetox
you just call with the data you want to set
-
lovetox
https://dev.gajim.org/gajim/gajim/-/blob/master/gajim/common/modules/caps.py?ref_type=heads#L181
-
lovetox
but why is is important that someone doesnt know that you are on Gajim?
-
bh0d
For the same reasons disabling os/client, idle time, timezone from showing in Gajim is possible.
-
bh0d
Anyway, thanks for the pointers, I will look into this.
-
deport
Remember that non-default client behavior makes you more unique
-
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?
-
lovetox
why are you asking this? do you intend to very often switch between those modes?
-
lovetox
you can find light/dark mode settings in Gajim -> Preferences
-
diane
Due to the lighting from my windows it's helpful to change it to light mode during the (very bright) daytime
-
lovetox
we get a signal from dbus org.freedesktop.portal.Settings
-
lovetox
that we act on, but you probably need to install something that offers this interface
-
based
i remember seeing something about this on archwiki give me a second
-
based
https://archlinux.org/packages/extra/x86_64/darkman/
-
based
darkman
-
based
"Framework for dark-mode and light-mode transitions on Linux desktop" that should be what youre looking for, right?
-
based
using it, you can also automate it by time 👍
-
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
-
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
-
deport
As I recall light/dark changes subject box and nick colors