hoehermann / purple-gowhatsapp

Pidgin/libpurple plug-in for WhatsApp Web.
GNU General Public License v3.0
289 stars 34 forks source link

QR Code appearing all scrambled with Spectrum2 and Gajim #191

Closed slmc-tech closed 8 months ago

slmc-tech commented 9 months ago

Hi there, I am really new to this and I cannot tell if this is an actual defect or not.

We are using spectrum2 with Openfire and Gojara and when a client tries to login the qr code is not properly formatted and cannot be scanned. Our client is Gajim.

I have tried setting the qrcode-size = 0 to circumvent this but instead i am seeing a server error message. Is there any way that you can test this or even better is there any logging that I can activate through spectrum that will help with detecting the issue?

I thank you in advance.

hoehermann commented 8 months ago

Thank you for the question.

In theory, both Spectrum and Gajim should honour the line-breaks. However, in text-only-mode, the QR-code is supposed to be rendered on a terminal – or at least with a monospace font. Can you set Gajim to a monospace font? You can also try to copy and paste the textual QR code into a terminal (running cat or something).

I do not know how to make images work with Spectrum. Maybe another Spectrum user can help you.

hoehermann commented 8 months ago

You can set the font to a "Monospace" font. On Linux Pidgin uses the default GTK. You can configure it via the font section in the "Appearance" settings tool. On my system, it looks like this: logon Although there are some horizontal lines, the WhatsApp App my phone can scan it.

Alternatively, you can copy the authentication string (highlighted with the blue selection) and paste it into any tool that turns plain text into a QR code and scan that. https://www.the-qrcode-generator.com/ works fine (no affiliation, just the first search result).

slmc-tech commented 8 months ago

Hi Again, I actually may have found a workaround to this. Not sure if this is going to help others but apparently the QR code is coming through properly in the console. Gajim has an option to view XML console. From there you have two tabs a Protocol tab and a Log tab. When we look at the protocol tab we will see that the QR code appears as you would expect and is scannable. So it is coming from the service properly. Thank you once again for taking the time to look into this.

hoehermann commented 8 months ago

Thank you for telling about the workaround. This will surely be helpful in the future.